Class: FlexiAdmin::Components::Form::LabelComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Form::LabelComponent
- Defined in:
- lib/flexi_admin/components/form/label_component.rb
Instance Attribute Summary collapse
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(form, name, options = {}) ⇒ LabelComponent
constructor
A new instance of LabelComponent.
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, = {}) @form = form @name = name = end |
Instance Attribute Details
#form ⇒ Object (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 |
#name ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/flexi_admin/components/form/label_component.rb', line 5 def end |