Class: Avo::Fields::TagsField::TagComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/avo/fields/tags_field/tag_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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