class UiBibz::Ui::Core::Lists::Components::ListHeader
Create a listHeader
This element is an extend of UiBibz::Ui::Core::Component
.
Attributes¶ ↑
-
content
- Content of element -
options
- Options of element -
html_options
- Html Options of element
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
Calls superclass method
UiBibz::Ui::Core::Component#component_html_classes
# 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