class UiBibz::Ui::Core::Lists::Components::ListHeader

Create a listHeader

This element is an extend of UiBibz::Ui::Core::Component.

Attributes

Options

You can add HTML attributes using the html_options. You can pass arguments in options attribute:

Public Instance Methods

pre_render() click to toggle source

Render html tag

# File lib/ui_bibz/ui/core/lists/components/list/list_header.rb, line 22
def pre_render
  content_tag :div, html_options do
    concat content_tag(:h5, content, class: 'mb-1')
    concat content_tag(:small, options[:extra])
  end
end

Private Instance Methods

component_html_classes() click to toggle source
# File lib/ui_bibz/ui/core/lists/components/list/list_header.rb, line 31
def component_html_classes
  super << %w[d-flex w-100 justify-content-between]
end