Class: RubyUI::BulkActions
- Defined in:
- lib/generators/ruby_cms/templates/components/ruby_ui/bulk_action_table/bulk_actions.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(url: nil, item_name: "item", buttons: [], controller_name: "ruby-ui--bulk-action-table", **user_attrs) ⇒ BulkActions
constructor
A new instance of BulkActions.
- #view_template ⇒ Object
Constructor Details
#initialize(url: nil, item_name: "item", buttons: [], controller_name: "ruby-ui--bulk-action-table", **user_attrs) ⇒ BulkActions
Returns a new instance of BulkActions.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/ruby_cms/templates/components/ruby_ui/bulk_action_table/bulk_actions.rb', line 5 def initialize( url: nil, item_name: "item", buttons: [], controller_name: "ruby-ui--bulk-action-table", **user_attrs ) @url = url @item_name = item_name @action_buttons = Array() @controller_name = controller_name super(**user_attrs) end |
Instance Method Details
#view_template ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/generators/ruby_cms/templates/components/ruby_ui/bulk_action_table/bulk_actions.rb', line 19 def view_template div(**attrs) do div(class: "flex items-center justify-between gap-4 max-w-full") do render_selection_info div(class: "flex items-center gap-2") do render_delete end end end end |