My emberjs dropdown is not displyaing the text I want it to display rather than that its displaying
But the value of each option is set correctly
This view has a model created using json object as given below
App.CHART_CATEGORIES_JSON = [
{
"id":0,
"name": "Topics",
"desc": "Each topics analysis based on the previous course and current course. Will give you insight about difficulty level of chapters and etc.",
"subtype":[
{
"id":5,
"name":"Popular Topics",
"desc": "It will help to figure out what are the popular topics in this course. This if fully based on the data of previous course",
"filter":{
"name":"name",
"desc":"desc",
"callback":"callback"
}
},
{
"id":1,
"name":"Popular Topics2",
"desc": "It will help to figure out what are the popular topics in this course. This if fully based on the data of previous course",
"filter":{
"name":"name",
"desc":"desc",
"callback":"callback"
}
}
]
}]
App.AnalyticsRoute = Ember.Route.extend({
model : function() {
return App.CHART_CATEGORIES_JSON;
}
})
Code for the template is
{{#view App.AnalyticsMainView}}
{{#each}}
<div>
<div class="chartCategory">
<div class="chartCategoryDetails">
<div class="chartSubcategorySelect">
<label>Subcategories :
</label>
{{view Ember.Select
content=subtype
optionValuePath="content.id"
OptionLabelPath="content.name"
}}
<div class="filterCriteria">
</div>
</div>
</div>
<div class="chartCategoryGraph">
</div>
</div>
</div>
{{/each}}
{{/view}}
Aucun commentaire:
Enregistrer un commentaire