ember.js - How do you use EmberData models with select2 view? -
i want use emberdata model select2 component/view.
i started gist https://gist.github.com/aboma/5737133 of @buuda (referenced in dynamically setting selected option in ember.select uses select2 lib).
but have no idea how connect select2 model emberdata models.
by giving initselection function in select2 options hook initialize existing initial selection. when call app.mymodel.find(id)
in initselection()
promise. idea resolve promise in initselection function?
another option can give select2 query
function. select2 uses function populate list of selectable options. how can connect results of app.mymodel.find({...})
select2 query()
function?
Comments
Post a Comment