Group actions:
Id Name Status
421 Educational Viking School active
422 Cloudy Cardinal inactive
423 Uptight Unicorn inactive
424 Famous Flatworm deleted
425 Bewildered Bee deleted
426 Romantic Elevator - 2nd Impact active
427 The Care Bears' Bungie Lord active
428 Thankful Tapir deleted
429 Difficult Dotterel inactive
430 Hazardous Whale On The Road active
431 Internet Raccoon Carnage active
432 Jealous Jaguar deleted
433 Hidden Werewolf Fantasy deleted
434 Dull Dormouse active
435 NBA Disco Temple active
436 Eager Eagle inactive
437 Witty Wolverine deleted
438 Ill Impala inactive
439 Robot Batman Roundup deleted
440 Victorious Vole deleted
( Items: 421 - 440 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;
}