Class: Glib::JsonUi::ViewBuilder::Panels::BulkEditSg
- Inherits:
-
View
- Object
- JsonUiElement
- View
- Glib::JsonUi::ViewBuilder::Panels::BulkEditSg
- Defined in:
- app/helpers/glib/json_ui/view_builder/panels.rb
Overview
The Surfguard members-import table: a fork of bulkEdit2's builder for glib-web-npm's bulkEditSg component (same skeleton — form-peer submission, per-row POSTs, viewCells/viewHeaders — plus the Surfguard parse inputs). Deliberately SG-specific; consolidate with BulkEdit2 when a second consumer proves which props generalize.
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
-
#created ⇒ Object
Override.
- #dataRows(value) ⇒ Object
- #viewCells(values) ⇒ Object
- #viewRows(value) ⇒ Object
Methods inherited from View
Methods inherited from JsonUiElement
action, any, array, badgeable, bool, color, component_name, date, date_time, enum, float, hash, icon, #initialize, int, length, menu, panels_builder, #props, required, singleton_array, string, text, url, views
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#created ⇒ Object
Override
559 560 561 562 563 564 |
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 559 def created # Same form-peer rule as bulkEdit2 (see its comment). if page.current_form raise 'panels_bulkEditSg is not allowed inside a form; place it as a sibling and target it with forms_submit targetId' end end |
#dataRows(value) ⇒ Object
599 600 601 |
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 599 def dataRows(value) json.dataRows value end |
#viewCells(values) ⇒ Object
591 592 593 594 595 596 597 |
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 591 def viewCells(values) json.set! 'viewCells' do values.each do |value| value.call(page.view_builder) end end end |
#viewRows(value) ⇒ Object
603 604 605 |
# File 'app/helpers/glib/json_ui/view_builder/panels.rb', line 603 def viewRows(value) json.viewRows value end |