Group actions:
Id Name Status
1 Klikam na asd deleted
2 aaaa deleted
3 aaa active
4 Difficult Deer deleted
5 Underground Harpoon Gladiator active
6 Anxious Alpacaaaa a aa deleted
7 Misty Meerkat inactive
8 Funky Chainsaw of Mysteryasd as da deleted
9 Sid Meier Deer Hunter Hoedown deleted
10 Terrible Karaoke of Mystery deleted
11 Joyous Jaguara sda sd deleted
12 Silly Sheepasdasd active
13 Grumpy Gerenuk deleted
14 Glorious Gaur deleted
15 Xenophobic Xenomorph deleted
16 Relieved Rhinoceros deleted
17 Bad Buzzard deleted
18 Dangerous Dolphin active
19 Quaint Quoll deleted
20 Thoughtless Turkey active
( Items: 1 - 20 from 1020 )
  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;
}