We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<BsDropdown> component provides an intuitive API for having links in a dropdown:
<BsDropdown>
<BsDropdown as |dd|> <dd.toggle>Dropdown <span class="caret"></span></dd.toggle> <dd.menu as |ddm|> <ddm.item> <ddm.linkTo @route="index">Something</ddm.linkTo> </ddm.item> </dd.menu> </BsDropdown>
But it does not provide a good API for having buttons in a dropdown. Using a button currently looks like this:
<BsDropdown as |dd|> <dd.toggle>Dropdown <span class="caret"></span></dd.toggle> <dd.menu as |ddm|> <ddm.item> <button class="dropdown-item" type="button" {{on "click" this.doSomething}}>Action</button> </ddm.item> </dd.menu> </BsDropdown>
Yielding a <ddm.button> similar to the existing <ddm.linkTo> would make the API more ergonomic.
<ddm.button>
<ddm.linkTo>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
<BsDropdown>
component provides an intuitive API for having links in a dropdown:But it does not provide a good API for having buttons in a dropdown. Using a button currently looks like this:
Yielding a
<ddm.button>
similar to the existing<ddm.linkTo>
would make the API more ergonomic.The text was updated successfully, but these errors were encountered: