Module: Bh::PanelRowHelper

Includes:
PanelHelper
Defined in:
lib/bh/helpers/panel_row_helper.rb

Overview

Provides methods to include multiple panels in a row.

Instance Method Summary collapse

Instance Method Details

#panel_row(options = {}, &block) ⇒ String

Returns an HTML block tag that follows the Bootstrap documentation on how to display a row, passing column options to each panel in the row.

Parameters:

  • options (Hash) (defaults to: {})

    the display options for the row of panels.

Options Hash (options):

  • :column_class (#to_s)

    the class to apply to the column <div> that wraps every panel in the row. Useful to specify a grid size for the column such as ‘col-sm-4’ to indicate how many columns of the row each panel should occupy.

Returns:

  • (String)

    an HTML block tag for a row of panels.

See Also:



22
23
24
25
26
# File 'lib/bh/helpers/panel_row_helper.rb', line 22

def panel_row(options = {}, &block)
   :div, class: 'row' do
    capture_panel_row(options, &block) if block_given?
  end
end