Sha256: 332f680acc6963012f7022dd68a9313351f2480c300df4b956294f942e9aff41
Contents?: true
Size: 648 Bytes
Versions: 28
Compression:
Stored size: 648 Bytes
Contents
format :html do def toolbar_split_button name, button_link_opts button_link = toolbar_split_button_link name, button_link_opts split_button(button_link, active_toolbar_item) { yield } end def toolbar_split_button_link name, opts link_text = toolbar_split_button_link_text name, opts opts[:class] = "active" if active_toolbar_button == name button_link link_text, opts end def toolbar_split_button_link_text name, opts icon = icon_tag opts.delete(:icon) icon + content_tag(:span, " #{name}".html_safe, class: "d-none d-md-inline") end def subject parent || self end end
Version data entries
28 entries across 28 versions & 1 rubygems