Table Rows โ
Checkboxes โ
Call showCheckBox() in setUp(). By default it uses the field id. Pass another attribute name when needed.
Selected values are in $this->checkboxValues (also via checkedValues()). For header buttons that act on the selection, see Bulk Actions.
phpapp/Livewire/ProductTable.php
use PowerComponents\LivewirePowerGrid\PowerGridComponent;
class ProductTable extends PowerGridComponent
{
public function setUp(): array
{
$this->showCheckBox();
return [];
}
}phpapp/Livewire/ProductTable.php
$this->showCheckBox('uuid');Radio Buttons โ
Call showRadioButton() in setUp(). By default it uses the field id. The selected value is $this->selectedRow.
phpapp/Livewire/ProductTable.php
use PowerComponents\LivewirePowerGrid\PowerGridComponent;
class ProductTable extends PowerGridComponent
{
public function setUp(): array
{
$this->showRadioButton();
return [];
}
}phpapp/Livewire/ProductTable.php
$this->showRadioButton('uuid');Image in Cell โ
Cell Data Formatting โ
See Custom Fields and Formatting Data Examples.
Summary row โ
See Summarizing Data.
Toggle Switch โ
See Toggleable.
Inline Editing โ
See Edit On Click.
Dropdown Menu โ
See Dropdown Menu.
Buttons โ
See Row Buttons.
Conditionally Show/Hide Controls โ
See Conditional Rules.
Collapsible Rows โ
See Detail Row.
Multi-row Bulk Actions โ
See Bulk Actions.
