Class: RubyUI::BulkActionTableHeader
- Defined in:
- lib/generators/ruby_cms/templates/components/ruby_ui/bulk_action_table/bulk_action_table_header.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(headers: nil, **user_attrs) ⇒ BulkActionTableHeader
constructor
A new instance of BulkActionTableHeader.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(headers: nil, **user_attrs) ⇒ BulkActionTableHeader
Returns a new instance of BulkActionTableHeader.
5 6 7 8 |
# File 'lib/generators/ruby_cms/templates/components/ruby_ui/bulk_action_table/bulk_action_table_header.rb', line 5 def initialize(headers: nil, **user_attrs) @headers = headers super(**user_attrs) end |
Instance Method Details
#view_template(&block) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/ruby_cms/templates/components/ruby_ui/bulk_action_table/bulk_action_table_header.rb', line 10 def view_template(&block) thead(**attrs) do if @headers render_header_row elsif block yield end end end |