Class: Maglev::Uikit::SectionToolbar::TopLeftCornerComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/maglev/uikit/section_toolbar/top_left_corner_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseComponent

#button_class_names

Constructor Details

#initialize(label:) ⇒ TopLeftCornerComponent

Returns a new instance of TopLeftCornerComponent.



9
10
11
# File 'app/components/maglev/uikit/section_toolbar/top_left_corner_component.rb', line 9

def initialize(label:)
  @label = label
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



7
8
9
# File 'app/components/maglev/uikit/section_toolbar/top_left_corner_component.rb', line 7

def label
  @label
end