Class: Avo::Resources::Controls::ActionsList
- Inherits:
-
BaseControl
- Object
- BaseControl
- Avo::Resources::Controls::ActionsList
- Defined in:
- lib/avo/resources/controls/actions_list.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#exclude ⇒ Object
readonly
Returns the value of attribute exclude.
-
#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, #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.
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
#color ⇒ Object (readonly)
Returns the value of attribute color.
5 6 7 |
# File 'lib/avo/resources/controls/actions_list.rb', line 5 def color @color end |
#exclude ⇒ Object (readonly)
Returns the value of attribute exclude.
5 6 7 |
# File 'lib/avo/resources/controls/actions_list.rb', line 5 def exclude @exclude end |
#include ⇒ Object (readonly)
Returns the value of attribute include.
5 6 7 |
# File 'lib/avo/resources/controls/actions_list.rb', line 5 def include @include end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
5 6 7 |
# File 'lib/avo/resources/controls/actions_list.rb', line 5 def style @style end |