Group actions:
Id Name Status
721 Depressed Dragonfly inactive
722 International Shock - The Card Game deleted
723 Prickly Pollan deleted
724 Amphibious Shopping Summit active
725 Creepy Cheetah deleted
726 The Great Katana Starring Mickey Mouse inactive
727 Arrogant Addax deleted
728 Mystic Chef Encounter inactive
729 Clumsy Caterpillar deleted
730 Madden Samurai Marines deleted
731 Stormy Sandpiper deleted
732 Sim Worm vs. Street Fighter deleted
733 Bizarre Insect Struggle active
734 Nutty Newt active
735 Confused Crab deleted
736 Bonk Bong in Middle-Earth inactive
737 Presidential Square Dancing Simulator deleted
738 Jewish Prison Desperadoes deleted
739 Black Bug inactive
740 Inexpensive Impala deleted
( Items: 721 - 740 from 1016 )
  See the code below 👇 or see GitHub
public function createComponentGrid(): DataGrid
{
	$grid = new DataGrid();

	$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

	$grid->setItemsPerPageList([20, 50, 100]);

	$grid->addColumnNumber('id', 'Id')
		->setAlign('start')
		->setSortable();

	$grid->addColumnText('name', 'Name')
		->setSortable();

	$grid->addColumnText('email', 'E-mail')
		->setSortable();

	$grid->addColumnDateTime('status', 'Status');

	$grid->addGroupAction(
		'Change user status',
		[
			'active' => 'Active',
			'inactive' => 'Inactive',
			'deleted' => 'Deleted',
		]
	)->onSelect[] = [$this, 'groupChangeStatus'];

	$grid->addGroupAction('Send', [
		'john' => 'John',
		'joe' => 'Joe',
		'frank' => 'Frank',
	])->onSelect[] = [$this, 'groupSend'];

	$grid->addGroupTextAction('Add note')->onSelect[] = [$this, 'groupAddNote'];

	$grid->addGroupAction('Delete')->onSelect[] = [$this, 'groupDelete'];

	$grid->addGroupButtonAction('Say hello')->onClick[] = [$this, 'sayHello'];

	return $grid;
}