Class: JetUi::Header::Component
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Header::Component
- Defined in:
- app/components/jet_ui/header/component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(direction: :row, align: :start, justify: :between, sticky: false, bordered: false, **options) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(direction: :row, align: :start, justify: :between, sticky: false, bordered: false, **options) ⇒ Component
Returns a new instance of Component.
6 7 8 9 10 11 12 13 14 |
# File 'app/components/jet_ui/header/component.rb', line 6 def initialize(direction: :row, align: :start, justify: :between, sticky: false, bordered: false, **) @direction = direction @align = align @justify = justify @sticky = sticky @bordered = bordered @options = end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'app/components/jet_ui/header/component.rb', line 16 def call content_tag :div, content, class: classes, **@options.except(:class) end |