class UiBibz::Ui::Ux::Tables::Thead

Create a Thead

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:

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