Class: Avo::Fields::TagsField::TagComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Avo::Fields::TagsField::TagComponent
- Defined in:
- app/components/avo/fields/tags_field/tag_component.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(label: nil, title: nil) ⇒ TagComponent
constructor
A new instance of TagComponent.
Constructor Details
#initialize(label: nil, title: nil) ⇒ TagComponent
Returns a new instance of TagComponent.
7 8 9 10 |
# File 'app/components/avo/fields/tags_field/tag_component.rb', line 7 def initialize(label: nil, title: nil) @label = label @title = title end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'app/components/avo/fields/tags_field/tag_component.rb', line 4 def label @label end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'app/components/avo/fields/tags_field/tag_component.rb', line 5 def title @title end |