Class: Navigation::IconPanel
- Inherits:
-
Components::Base
- Object
- Components::Base
- Navigation::IconPanel
- Includes:
- Phlex::Rails::Helpers::LinkTo
- Defined in:
- app/components/databasium/navigation/icon_panel.rb
Instance Method Summary collapse
-
#initialize(icons_with_text: []) ⇒ IconPanel
constructor
element format: { icon: “icon-name”, text: “text”, path: “path”, method: :get | :post | frontend, turbo_frame: “frame_id” }.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(icons_with_text: []) ⇒ IconPanel
element format: { icon: “icon-name”, text: “text”, path: “path”, method: :get | :post | frontend, turbo_frame: “frame_id” }
9 10 11 |
# File 'app/components/databasium/navigation/icon_panel.rb', line 9 def initialize(icons_with_text: []) @icons_with_text = icons_with_text end |
Instance Method Details
#view_template(&block) ⇒ Object
13 14 15 |
# File 'app/components/databasium/navigation/icon_panel.rb', line 13 def view_template(&block) form(&block) end |