mardi 15 décembre 2015

Ember Bootstrap Dropdown

I am trying to use a pre-existing component to create a Bootstrap dropdown in Ember. The component API can be found here Ember Bootstrap Dropdown API. How do I make Ember aware of what the user selects? I can do it if I don't use that component but I was hoping to use it. Here is what I have:

{{#bs-dropdown}}
  {{#bs-button}}
    <strong>Select a File</strong>
  {{/bs-button}}
  {{#bs-dropdown-button}}
    <span class="caret"></span>
  {{/bs-dropdown-button}}
  {{#bs-dropdown-menu}}
    {{#each list as |item|}}
      <li>
        <a value={{item.title}}>{{item.title}}</a>
      </li>
    {{/each}}
  {{/bs-dropdown-menu}}
{{/bs-dropdown}}

Thanks.




Aucun commentaire:

Enregistrer un commentaire