Class: FlexiAdmin::Components::Resource::LinkActionComponent

Inherits:
BaseComponent
  • Object
show all
Extended by:
Helpers::ActionButtonHelper
Includes:
Helpers::IconHelper
Defined in:
lib/flexi_admin/components/resource/link_action_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::ActionButtonHelper

button, button_icon, button_icon_class, button_text, title, title_text

Methods included from Helpers::IconHelper

#icon, #icon_class

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, **options)
  @label = label
  @path = path
  @options = options
end

Instance Attribute Details

#labelObject (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

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/flexi_admin/components/resource/link_action_component.rb', line 8

def options
  @options
end

#pathObject (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