Class: JetUi::Navbar::Component

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

Instance Method Summary collapse

Constructor Details

#initialize(sticky: true, **options) ⇒ Component

Returns a new instance of Component.



6
7
8
9
# File 'app/components/jet_ui/navbar/component.rb', line 6

def initialize(sticky: true, **options)
  @sticky = sticky
  @options = options
end

Instance Method Details

#callObject



11
12
13
# File 'app/components/jet_ui/navbar/component.rb', line 11

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