Class: Avo::Resources::Controls::ActionsList
- Inherits:
-
BaseControl
- Object
- BaseControl
- Avo::Resources::Controls::ActionsList
- 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
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#exclude ⇒ Object
readonly
Returns the value of attribute exclude.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#include ⇒ Object
readonly
Returns the value of attribute include.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Attributes inherited from BaseControl
#as_index_control, #confirmation_message, #icon_class, #label, #size, #title
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionsList
constructor
A new instance of ActionsList.
Methods inherited from BaseControl
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
#color ⇒ Object (readonly)
Returns the value of attribute color.
7 8 9 |
# File 'lib/avo/resources/controls/actions_list.rb', line 7 def color @color end |
#exclude ⇒ Object (readonly)
Returns the value of attribute exclude.
7 8 9 |
# File 'lib/avo/resources/controls/actions_list.rb', line 7 def exclude @exclude end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
7 8 9 |
# File 'lib/avo/resources/controls/actions_list.rb', line 7 def icon @icon end |
#include ⇒ Object (readonly)
Returns the value of attribute include.
7 8 9 |
# File 'lib/avo/resources/controls/actions_list.rb', line 7 def include @include end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
7 8 9 |
# File 'lib/avo/resources/controls/actions_list.rb', line 7 def style @style end |