Class: FlexiAdmin::Components::Resource::LinkActionComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Resource::LinkActionComponent
- Extended by:
- Helpers::ActionButtonHelper
- Includes:
- Helpers::IconHelper
- Defined in:
- lib/flexi_admin/components/resource/link_action_component.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(label, path, **options) ⇒ LinkActionComponent
constructor
A new instance of LinkActionComponent.
Methods included from Helpers::ActionButtonHelper
button, button_icon, button_icon_class, button_text, title, title_text
Methods included from Helpers::IconHelper
Constructor Details
#initialize(label, path, **options) ⇒ LinkActionComponent
Returns a new instance of LinkActionComponent.
10 11 12 13 14 |
# File 'lib/flexi_admin/components/resource/link_action_component.rb', line 10 def initialize(label, path, **) @label = label @path = path @options = end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
8 9 10 |
# File 'lib/flexi_admin/components/resource/link_action_component.rb', line 8 def label @label end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/flexi_admin/components/resource/link_action_component.rb', line 8 def @options end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/flexi_admin/components/resource/link_action_component.rb', line 8 def path @path end |