cancel
Showing results for 
Search instead for 
Did you mean: 

How to Add two controls in one cell in sap.m.Table

Hi community,

I have a problem which i am not able to find solution to. I want to add two controls in a single cell of a sap.m.Table. Code is as follows:

<Table>

       <columns>

        <Column><header><Label text="First" /></header></Column>

        <Column><header><Label text="Second}" /></header></Column>

        <Column><header><Label text="Third" /></header></Column>

      </columns>

    

      <items>

      <ColumnListItem type="Navigation">

         <cells>

        <Label text="Firstname" />

        <Label text="Lastname"> </Label>

        <Label id="CompleteStatus" /> </Label><Button id="Button1" press="doSomething"> </Button>

         </cells>

      </ColumnListItem>

      </items>

</Table>

My question is there a possible way to put the above red marked controls(Label + Button) in a single cell in the table.

Thanks in advance

Thanks and Regards,

Abinash

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor

hbox

<ColumnListItem><cells><Label text="{i18n>AMOUNT}"/>   <HBox alignItems="Center" justifyContent="SpaceAround"> <Input id="AmountFrom"/><Label id="AmountToLabel" text="-"/><Input id="AmountTo"/></HBox></cells></ColumnListItem>

Answers (1)

Answers (1)

0 Kudos

Thank you very much Maksim. Was an instant solution!!!