Here i am using Ember.select class for display the Drop-downs in my application, i need to break-down long labels into newline for every 25 characters, see my below .hbs code, "optionLabelPath="content.name" is the label it is retreiving from array of object
{{view Ember.Select contentBinding=entities optionLabelPath="content.name" optionValuePath="content.id" prompt="-- Select --" valueBinding=entityId}}
and i used css for option but it does't work
my css code
option {
width: 11em;
border: 1px solid #000000;
word-wrap: break-word;
}
Aucun commentaire:
Enregistrer un commentaire