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

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

Instance Attribute Summary collapse

Attributes inherited from BaseControl

#as_index_control, #confirmation_message, #icon, #icon_class, #label, #size, #title

Instance Method Summary collapse

Methods inherited from BaseControl

#type

Constructor Details

#initialize(**args) ⇒ ActionsList

Returns a new instance of ActionsList.



7
8
9
10
11
12
13
14
# File 'lib/avo/resources/controls/actions_list.rb', line 7

def initialize(**args)
  super(**args)

  @color = args[:color] || :primary
  @exclude = args[:exclude] || []
  @include = args[:include] || []
  @style = args[:style] || :outline
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



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

def color
  @color
end

#excludeObject (readonly)

Returns the value of attribute exclude.



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

def exclude
  @exclude
end

#includeObject (readonly)

Returns the value of attribute include.



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

def include
  @include
end

#styleObject (readonly)

Returns the value of attribute style.



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

def style
  @style
end