on 03-09-2015 2:05 PM
Experts,
I am trying to display the tokens with line break. I have a drop down box and the values selected are put in JSON model and pushed as tokens in the UI.
Code :
<FlexBox
alignItems="Start" displayInline="false" fitContainer="false" >
<items>
<Tokenizer id="Token1" size="2em" scrollWidth="50px"
tokens="{/mydata}">
<Token text="{Name}" />
</Tokenizer>
</items>
</FlexBox>
In controller I have,
var sel1 = this.getView().byId("select1").getSelectedKey();
Datalist.mydata.push({Name:sel1});
var mymodel= new sap.ui.model.json.JSONModel(Datalist);
this.getView().byId("Token1").setModel(mymodel);
Hi,
A quick fix is to add this:
.sapMTokenizer .sapMToken {
float: left;
}
to a styling document.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.