Class: JetUi::Header::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/header/component.rb

Instance Method Summary collapse

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, **options)
  @direction = direction
  @align = align
  @justify = justify
  @sticky = sticky
  @bordered = bordered
  @options = options
end

Instance Method Details

#callObject



16
17
18
# File 'app/components/jet_ui/header/component.rb', line 16

def call
   :div, content, class: classes, **@options.except(:class)
end