Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Beside the issue with your Handlebars template - <code>{{view}}</code> must not be closed with an end tag, but <code>{{#view}}{{/view}}</code> needs to - your provided code works fine. <code>multiple</code> is a boolean so everything which evaluates to <code>true</code> will set it to <code>true</code>. That's why assigning <code>multiple</code> works too. I also removed the <code>prompt</code> since it messes up multiple selections. I guess this is a bug. See <a href="http://jsfiddle.net/pangratz666/p4QfQ/" rel="nofollow">http://jsfiddle.net/pangratz666/p4QfQ/</a>:</p> <p><strong>Handlebars</strong>:</p> <pre class="lang-html prettyprint-override"><code>{{view Ember.Select multiple="true" contentBinding="App.viewPersonController" selectionBinding="App.selectedPersonController.persons" optionLabelPath="content.personName" optionValuePath="content.id"}} </code></pre> <p><strong>JavaScript</strong>:</p> <pre class="lang-js prettyprint-override"><code>App.viewPersonController = Ember.ArrayProxy.create({ content: [{personName: 'Alf', id: 1}, {personName: 'Brian', id: 2}] }); App.selectedPersonController = Ember.Object.create({ persons: [] });​ </code></pre> <hr> <p>A note on the <code>view</code> Handlebars helper: if you specify a view via <code>{{view ClassName}}</code> you are telling Handlebars to render the specific view <code>ClassName</code>, where the template is defined as <code>templateName</code> or precompiled as <code>template</code> on the views' class.</p> <p>By declaring a view via <code>{{#view ClassName}} template instructions {{/view}}</code> you are defining the template for the view which shall be rendered explicitly.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload