bootstrap-for-ember icon indicating copy to clipboard operation
bootstrap-for-ember copied to clipboard

Support for Dropdowns

Open lackac opened this issue 11 years ago • 2 comments

I don't see if support for dropdowns has ever been considered. I would be happy to help.

Since dropdowns can be used in multiple ways, I think it would make sense to create separate components for the different use cases.

Proposed components:

bs-select

This would behave similarly to Ember.Select.

{{bs-select content=options
            optionValuePath="content.id"
            optionLabelPath="content.title"
            value=selectedOption
            icon="user"}}

bs-dropdown

This would work as a generic dropdown menu where the content determines what appears in the dropdown.

{{#bs-dropdown title="Settings" icon="cog"}}
  {{bs-dropdown-header title="Font Family"}}
  {{bs-dropdown-item title="Arial" action="useArial"}}
  {{bs-dropdown-item title="Helvetica" action="useHelvetica"}}
  {{bs-dropdown-divider}}
  {{bs-dropdown-header title="Font Size"}}
  {{bs-dropdown-item title="Small" action="smallFont"}}
  {{bs-dropdown-item title="Medium" action="mediumFont"}}
  {{bs-dropdown-item title="Large" action="largeFont"}}
{{/bs-dropdown}}

lackac avatar Oct 29 '13 23:10 lackac

It would be beneficial to also support a way to provide selection support & programmatically provide selection items, I'll think about it a bit more,

Thanks for the info, I'm keeping this ticket open.

asaf avatar Oct 30 '13 20:10 asaf

Has there been any progress on this? http://addepar.github.io/#/ember-widgets/select could be a good place to start.

azuby avatar May 14 '14 01:05 azuby