Class: Maglev::Uikit::SectionToolbar::BottomComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Uikit::SectionToolbar::BottomComponent
- Defined in:
- app/components/maglev/uikit/section_toolbar/bottom_component.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
- #button_classes ⇒ Object
-
#initialize(paths:, options:) ⇒ BottomComponent
constructor
A new instance of BottomComponent.
- #insert_button? ⇒ Boolean
Methods inherited from BaseComponent
Constructor Details
#initialize(paths:, options:) ⇒ BottomComponent
Returns a new instance of BottomComponent.
9 10 11 12 |
# File 'app/components/maglev/uikit/section_toolbar/bottom_component.rb', line 9 def initialize(paths:, options:) @paths = paths @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'app/components/maglev/uikit/section_toolbar/bottom_component.rb', line 7 def @options end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
7 8 9 |
# File 'app/components/maglev/uikit/section_toolbar/bottom_component.rb', line 7 def paths @paths end |
Instance Method Details
#button_classes ⇒ Object
18 19 20 21 22 23 |
# File 'app/components/maglev/uikit/section_toolbar/bottom_component.rb', line 18 def %(bg-editor-primary pointer-events-auto cursor-pointer flex items-center justify-center h-8 w-8 rounded-full text-white/75 hover:text-white relative top-4 ) end |
#insert_button? ⇒ Boolean
14 15 16 |
# File 'app/components/maglev/uikit/section_toolbar/bottom_component.rb', line 14 def [:insert_button].nil? || !![:insert_button] end |