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
Can't add dividers or dropdowns to render_list, probably because adding a css class to an 'li' tag is not possible, e.g.
The text was updated successfully, but these errors were encountered:
I had the same problem like you before and after I read the source code at lib/bootstrap_helper/helper.rb it can be done with like this:
- my_dropdown = '<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>' - my_dropdown += render_list class: 'dropdown-menu' do |li| - li << link_to('Action', '#') - li << link_to('Another action', '#') - li << link_to('Something else here', '#') - li << ['', class: 'divider'] - li << link_to('Separated link', '#')
= render_list class: "nav-bar" do |li| - li << [ my_dropdown , class: 'dropdown']
:)
Sorry, something went wrong.
No branches or pull requests
Can't add dividers or dropdowns to render_list, probably because adding a css class to an 'li' tag is not possible, e.g.
The text was updated successfully, but these errors were encountered: