on 05-19-2016 4:39 PM
I I'm trying to assign a class to a row in my sap.m.table dynamically using my view model SearchResults.
Unfortunately it's igoring my class properties (see below).
How do I do this in my XML view ?
<items class="{SearchResults>typeClass}">
<ColumnListItem class="{SearchResults>typeClass}">
<cells>
<ObjectIdentifier title="{ path:'SearchResults>temporaryDate', formatter:'.formatDisplayDate'}"/>
<TimePicker id="TP1_1" value="{SearchResults>startTime1}" selectedKey="{SearchResults>startTime1}" valueFormat="HH:mm" displayFormat="HH:mm" change="onTimeChangedOpening"
visible="{SearchResults>isOpen}" valueState="{SearchResults>startTimeValid}"
placeholder="Enter Opening Time" editable="false">
</TimePicker>
go the chrome to check what happened to your css.
1. is class added in right place?
2. is the class overwritten by some other css?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both items and ColumnListItem do not have a property called class. You could probably do it in the controller using addStyleClass.
Regards,
Jamie
SAP - Technology RIG
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 | |
24 | |
12 | |
9 | |
7 | |
6 | |
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.