2016-05-19 6 views
1

私は最後の列に4列のテーブルを持っています。2つのボタンが各行にあります。SAPUI5で単一の列に2つのボタンを表示する方法

私はXMLで静的コードを使用して試してみましたが、それは働いていない:

<Table id="tableid"> 
    <columns> 
    <Column> 
     <Text text="Product" /> 
    </Column> 
    <Column> 
     <Text text="Price" /> 
    </Column> 
    <Column> 
     <Text text="compant" /> 
    </Column> 
    <Column> 
     <Text text="Buttons" /> 
    </Column> 
    </columns> 
</Table> 
<items> 
    <ColumnListItem> 
    <cells> 
     <Text text="TV"/> 
    </cells> 
    <cells> 
     <Text text="15000"/> 
    </cells> 
    <cells> 
     <Text text="samsung"/> 
    </cells> 
    <cells> 
     <Button text="Button1"/> 
     <Button text="Button2"/> 
    </cells> 
    </ColumnListItem> 
</items> 

答えて

1

あなたは、単一のセルに二つのボタンを取得するためにHBoxコントロールを使用することができます。

ここではjsbinを作成しました。

+0

ありがとうございます。しかし、それは動的でもあります。 –

+0

はい!私はそれに応じて答えを適応させました。 – Dopedev

関連する問題