Class: RubyUI::DataTable
- Defined in:
- lib/ruby_ui/data_table/data_table.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(id:, **attrs) ⇒ DataTable
constructor
A new instance of DataTable.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(id:, **attrs) ⇒ DataTable
Returns a new instance of DataTable.
7 8 9 10 |
# File 'lib/ruby_ui/data_table/data_table.rb', line 7 def initialize(id:, **attrs) @id = id super(**attrs) end |
Instance Method Details
#view_template(&block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/ruby_ui/data_table/data_table.rb', line 12 def view_template(&block) turbo_frame(id: @id, target: "_top") do div(**attrs) do yield if block end end end |