Class: SolidusAdmin::UI::Table::Toolbar::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/solidus_admin/ui/table/toolbar/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Component

Returns a new instance of Component.



4
5
6
# File 'app/components/solidus_admin/ui/table/toolbar/component.rb', line 4

def initialize(**options)
  @options = options
end

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/components/solidus_admin/ui/table/toolbar/component.rb', line 8

def call
  tag.div(
    content,
    **@options,
    class: "
      min-h-14 p-2 bg-white border-b border-gray-100
      justify-start items-center gap-2
      visible:flex hidden:hidden
      rounded-t-lg
      #{@options[:class]}
    "
  )
end