Class: NitroRails::PanelHelper::PanelLinkComponent
- Inherits:
-
Object
- Object
- NitroRails::PanelHelper::PanelLinkComponent
- Defined in:
- app/helpers/nitro_rails/panel_helper.rb
Instance Method Summary collapse
-
#initialize(content = nil, path, **opts, &block) ⇒ PanelLinkComponent
constructor
A new instance of PanelLinkComponent.
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 |