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

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

Constant Summary collapse

ACTIONS_LIST_DROPDOWN_ICON =
"heroicons/outline/arrow-down-circle"

Instance Attribute Summary collapse

Attributes inherited from BaseControl

#as_index_control, #confirmation_message, #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.



9
10
11
12
13
14
15
16
17
# File 'lib/avo/resources/controls/actions_list.rb', line 9

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

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

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



7
8
9
# File 'lib/avo/resources/controls/actions_list.rb', line 7

def color
  @color
end

#excludeObject (readonly)

Returns the value of attribute exclude.



7
8
9
# File 'lib/avo/resources/controls/actions_list.rb', line 7

def exclude
  @exclude
end

#iconObject (readonly)

Returns the value of attribute icon.



7
8
9
# File 'lib/avo/resources/controls/actions_list.rb', line 7

def icon
  @icon
end

#includeObject (readonly)

Returns the value of attribute include.



7
8
9
# File 'lib/avo/resources/controls/actions_list.rb', line 7

def include
  @include
end

#styleObject (readonly)

Returns the value of attribute style.



7
8
9
# File 'lib/avo/resources/controls/actions_list.rb', line 7

def style
  @style
end