on 07-28-2016 4:13 PM
Dear community,
when I add a Checkbox into my ColumnList the height of the cells moved and the checkbox is to low.
<Table
headerText="{i18n>LineItemTableHeader}"
mode="SingleSelectLeft"
items="{MasterModel>time_trackings/?$expand=contract,employee}" >
<columns>
<Column>
<header><Label text="LST Date" /></header>
</Column>
<Column
minScreenWidth="Tablet"
demandPopin="true"
hAlign="Left" >
<header><Label text="Description" /></header>
</Column>
<Column
minScreenWidth="Tablet"
demandPopin="true"
hAlign="Center" >
<header><Label text="Hours" /></header>
</Column>
<Column
hAlign="Center" >
<header><Label text="Consultant" /></header>
</Column>
<Column
hAlign="Center" >
<header><Label text="Commited" /></header>
</Column>
</columns>
<ColumnListItem
type="Navigation"
press="handleLineItemPress" >
<cells>
<ObjectIdentifier
title="{MasterModel>LST_DATE}" />
<Text
text="{MasterModel>DESCRIPTION}"/>
<Text
text="{MasterModel>RE_STUNDEN}"/>
<Text
text="{MasterModel>employee/EMPLOYEE_SHORT}"/>
<CheckBox selected="{
path: 'MasterModel>COMMITTED'
}" />
</cells>
</ColumnListItem>
</Table>
How can I fix it and how can i customize the cell height?
Regards,
Marcel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All
it can be done with css like this
JS Bin - Collaborative JavaScript Debugging
more efficient and no javascript involved.
Thanks
-D
i would propose just set the vertical alignment of the cells of the table row by default :-
<ColumnListItem
type="Navigation"
press="handleLineItemPress"
vAlign="Middle">
this avoids interfering with the ContentDensity (Cozy vs Compact) responsiveness behaviour of SAPUI5. (as sap.m.Table is a responsive control)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.