Class: JetUi::Empty::ActionsComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/empty/actions_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ ActionsComponent

Returns a new instance of ActionsComponent.



6
7
8
# File 'app/components/jet_ui/empty/actions_component.rb', line 6

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

Instance Method Details

#callObject



10
11
12
13
14
15
16
# File 'app/components/jet_ui/empty/actions_component.rb', line 10

def call
  render JetUi::Group::Component.new(sticky: false,
                                     class: class_names('empty__actions', @options.delete(:class)),
                                     **@options) do
    content
  end
end