Group actions:
Id Name Status
501 Ultra Puppy Strikes Back deleted
502 Itchy Impala deleted
503 Dynamite Viking Symphony deleted
504 Final Fantasy Dodgeball in the Salad Kingdom deleted
505 Neon Bass in the Magic Kingdom active
506 Scandinavian Desert Attack inactive
507 Depressing Karaoke Z deleted
508 Prehistoric Fashion Crusader deleted
509 Dance Dance Stapler Plus deleted
510 Blue-eyed Batfish deleted
511 Frightened Flamingo deleted
512 Christian Mummy in Busytown deleted
513 Wandering Wolf deleted
514 Art of Blood DS inactive
515 Handsome Hyena deleted
516 Geriatric Skate of Doom deleted
517 Worried Wombat deleted
518 Lair of the Go-Kart Agent inactive
519 Tense Turkey active
520 Royal Underwear Syndicate deleted
( Items: 501 - 520 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;
}