class UiBibz::Ui::Core::Lists::Components::ListBody
Create a listBody
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_body.rb, line 22 def pre_render output = [content_tag(:p, content, html_options)] output << content_tag(:small, options[:extra]) output.join.html_safe end
Private Instance Methods
component_html_classes()
click to toggle source
# File lib/ui_bibz/ui/core/lists/components/list/list_body.rb, line 30 def component_html_classes 'mb-1' end