Class: Plutonium::UI::Table::Base

Inherits:
Phlexi::Table::Base
  • Object
show all
Includes:
Component::Behaviour
Defined in:
lib/plutonium/ui/table/base.rb

Defined Under Namespace

Classes: DataColumn, Display, SelectionColumn, SortableHeaderCell

Instance Method Summary collapse

Methods included from Component::Behaviour

#around_template

Methods included from Component::Tokens

#classes, #tokens

Methods included from Component::Kit

#BuildActionButton, #BuildActionsDropdown, #BuildBlock, #BuildBreadcrumbs, #BuildBulkActionsToolbar, #BuildColorModeSelector, #BuildDynaFrameContent, #BuildDynaFrameHost, #BuildEmptyCard, #BuildFrameNavigatorPanel, #BuildModalCentered, #BuildModalSlideover, #BuildPageHeader, #BuildPanel, #BuildRowActionsDropdown, #BuildSkeletonTable, #BuildTabList, #BuildTableFilterPills, #BuildTableInfo, #BuildTablePagination, #BuildTableScopesBar, #BuildTableScopesPills, #BuildTableSearchBar, #BuildTableToolbar, #BuildTableViewSwitcher, #method_missing, #respond_to_missing?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Plutonium::UI::Component::Kit

Instance Method Details

#table_body_row_attributes(wrapped_object) ⇒ Object

Make every body row a row-click candidate. The controller delegates to whatever element inside the row is tagged ‘data-row-click-target=“show”` (typically the show action button). Rows without such a target become a no-op — no special-casing needed in this layer.



14
15
16
# File 'lib/plutonium/ui/table/base.rb', line 14

def table_body_row_attributes(wrapped_object)
  super.merge(data: {controller: "row-click", action: "click->row-click#click"})
end