Module: OkonomiUiKit::AttributeSectionHelper

Defined in:
app/helpers/okonomi_ui_kit/attribute_section_helper.rb

Defined Under Namespace

Classes: AttributeSectionBuilder

Instance Method Summary collapse

Instance Method Details

#attribute_section(title:, description: nil, **options, &block) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'app/helpers/okonomi_ui_kit/attribute_section_helper.rb', line 3

def attribute_section(title:, description: nil, **options, &block)
  builder = AttributeSectionBuilder.new(self)

  render "okonomi/attribute_sections/section",
         builder: builder,
         title: title,
         description: description,
         options: options,
         &block
end