bootstrap-for-ember
bootstrap-for-ember copied to clipboard
Support for Dropdowns
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}}
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.
Has there been any progress on this? http://addepar.github.io/#/ember-widgets/select could be a good place to start.