Method: CoreLinkHelper#table_action_button

Defined in:
app/helpers/core_link_helper.rb

#table_action_button(action_id, icon_name = 'more_horiz') ⇒ Object

Add the table action button and setup the drop down



42
43
44
45
46
47
48
49
50
# File 'app/helpers/core_link_helper.rb', line 42

def table_action_button(action_id, icon_name = 'more_horiz')
  datum = { target: action_id,
            constrainWidth: false,
            gutter: 28,
            alignment: 'right' }
  (:a, class: 'dropdown-trigger', data: datum) do
    concat(materialize_icon(icon_name))
  end
end