Group actions:
Id Name Status
841 Grotesque Gull active
842 Blasphemous Thunder Conquest active
843 Impossible Impala active
844 Political Sandwich Hunt deleted
845 Russian Disco Groove deleted
846 Impossible Impala inactive
847 Epic Ice Cream Pioneer deleted
848 Powerful Piranha active
849 Selfish Seal active
850 Obnoxious Ox deleted
851 Important Impala inactive
852 Amused Angelfish inactive
853 Obedient Ocelot inactive
854 Wide-eyed Worm inactive
855 Kabuki Biplane Shack deleted
856 Handsome Hedgehog deleted
857 Lazy Lapwing active
858 Hitler Software Overdrive deleted
859 The Castle of Aerobics Warfare active
860 Tired Tortoise active
( Items: 841 - 860 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;
}