Sha256: 0c599c767324da82e86d4777e03dcd26db9f39f3b96e8426a20fca0a456a05d9
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 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: "hidden-xs-down") end def subject parent || self end end
Version data entries
4 entries across 4 versions & 1 rubygems