Group actions:
Id Name Status
601 Concerned Cheetah active
602 Joyous Jellyfish inactive
603 Savage Outlaw Rebellion deleted
604 Disgusted Dormouse deleted
605 Sore Stoat deleted
606 Helicopter Fantasy X active
607 Awful Alpaca active
608 Adventurous Armadillo inactive
609 Motionless Mongoose deleted
610 Grand Bow Hunter Terror inactive
611 Shy Starling deleted
612 Cautious Chimpanzee deleted
613 Christian Makeout DJ inactive
614 Troubled Tarantula deleted
615 Peaceful Death Onslaught inactive
616 Amish College EX active
617 The Sims: Moon - The Quickening active
618 Latino Death For Kids active
619 Yellowed Yak inactive
620 Frantic Fox active
( Items: 601 - 620 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;
}