2017-07-20 11:12:06 -04:00
|
|
|
- triggers = local_assigns.fetch(:triggers)
|
|
|
|
- button_class = local_assigns.fetch(:button_class, '')
|
|
|
|
- hook = local_assigns.fetch(:hook)
|
|
|
|
|
|
|
|
.hook-test-button.dropdown.inline
|
|
|
|
%button.btn{ 'data-toggle' => 'dropdown', class: button_class }
|
|
|
|
Test
|
|
|
|
= icon('caret-down')
|
2018-04-17 13:18:41 -04:00
|
|
|
%ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
|
2017-07-20 11:12:06 -04:00
|
|
|
- triggers.each_value do |event|
|
|
|
|
%li
|
|
|
|
= link_to_test_hook(hook, event)
|