Class: Avo::Resources::Controls::ActionsList

Inherits:
BaseControl
  • Object
show all
Defined in:
lib/avo/resources/controls/actions_list.rb

Instance Method Summary collapse

Methods inherited from BaseControl

#action?, #actions_list?, #back_button?, #delete_button?, #detach_button?, #edit_button?, #icon, #initialize, #label, #link_to?, #title

Constructor Details

This class inherits a constructor from Avo::Resources::Controls::BaseControl

Instance Method Details

#colorObject



9
10
11
# File 'lib/avo/resources/controls/actions_list.rb', line 9

def color
  @args[:color] || :primary
end

#excludeObject



5
6
7
# File 'lib/avo/resources/controls/actions_list.rb', line 5

def exclude
  Array.wrap(@args[:exclude]) || []
end

#styleObject



13
14
15
# File 'lib/avo/resources/controls/actions_list.rb', line 13

def style
  @args[:style] || :outline
end