class UiBibz::Ui::Ux::Tables::Thead
Create a Thead
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:
-
status
- status of element with symbol value: (:inverse
,:default
)
Signatures¶ ↑
UiBibz::Ui::Ux::Thead.new(content, options = nil, html_options = nil) UiBibz::Ui::Ux::Thead.new(options = nil, html_options = nil) do content end
Examples¶ ↑
UiBibz::Ui::Ux::Thead.new(content, { status: :inverse }).render
Public Instance Methods
pre_render()
click to toggle source
Render html tag
# File lib/ui_bibz/ui/ux/tables/components/thead.rb, line 37 def pre_render content_tag :thead, content, html_options end
Private Instance Methods
status()
click to toggle source
# File lib/ui_bibz/ui/ux/tables/components/thead.rb, line 43 def status "thead-#{@options[:status]}" unless @options[:status].nil? end