Class: NitroRails::PanelHelper::PanelLinkComponent

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/nitro_rails/panel_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(content = nil, path, **opts, &block) ⇒ PanelLinkComponent

Returns a new instance of PanelLinkComponent.



53
54
55
56
57
# File 'app/helpers/nitro_rails/panel_helper.rb', line 53

def initialize(content = nil, path, **opts, &block)
  @panel_options = opts.delete(:panel) || {}
  @container_options = opts.delete(:container) || {}
  @type = opts.delete(:type) || :card
end