Module: Baldur::Optional::PanelSecondaryHelper

Includes:
RenderHelper
Included in:
PanelRightHelper
Defined in:
app/helpers/baldur/optional/panel_secondary_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_panel_right(**options, &block) ⇒ Object



21
22
23
# File 'app/helpers/baldur/optional/panel_secondary_helper.rb', line 21

def ui_panel_right(**options, &block)
  ui_panel_secondary(**options, &block)
end

#ui_panel_secondary(id:, title:, trigger_label:, trigger_icon: "message-square", panel_class: nil, trigger_class: nil, shell_class: nil, shell_data: nil, panel_data: nil, trigger_data: nil, &block) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/helpers/baldur/optional/panel_secondary_helper.rb', line 6

def ui_panel_secondary(id:, title:, trigger_label:, trigger_icon: "message-square", panel_class: nil, trigger_class: nil, shell_class: nil, shell_data: nil, panel_data: nil, trigger_data: nil, &block)
  baldur_render "baldur/optional/panel_secondary",
                id: id,
                title: title,
                trigger_label: trigger_label,
                trigger_icon: trigger_icon,
                panel_class: panel_class,
                trigger_class: trigger_class,
                shell_class: shell_class,
                shell_data: shell_data,
                panel_data: panel_data,
                trigger_data: trigger_data,
                body: block_given? ? capture(&block) : nil
end