Class: FlexiAdmin::Components::Form::LabelComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/flexi_admin/components/form/label_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(form, name, options = {}) ⇒ LabelComponent

Returns a new instance of LabelComponent.



7
8
9
10
11
# File 'lib/flexi_admin/components/form/label_component.rb', line 7

def initialize(form, name, options = {})
  @form = form
  @name = name
  @options = options
end

Instance Attribute Details

#formObject (readonly)

Returns the value of attribute form.



5
6
7
# File 'lib/flexi_admin/components/form/label_component.rb', line 5

def form
  @form
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/flexi_admin/components/form/label_component.rb', line 5

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/flexi_admin/components/form/label_component.rb', line 5

def options
  @options
end