Group actions:
Id Name Status
701 Rich Raccoon active
702 Elated Eland active
703 Frantic Flatworm deleted
704 Grieving Gnat active
705 Itchy Ibex active
706 Lair of the Tank Police inactive
707 Ancient Chocobo Disaster inactive
708 Tactical Hitman Power deleted
709 Communist Mahjong Agent inactive
710 Curse of the Mafia DJ inactive
711 Dangerous Matador Competition deleted
712 Beautiful Transvestite Machine deleted
713 Happy Hawk deleted
714 Cute Cormorant inactive
715 Interstellar Toon Tale active
716 Jittery Jackal inactive
717 Leisure Suit Grizzly Bear - Total War inactive
718 Curious Crossbill deleted
719 Yellowed Yak deleted
720 Catholic Pokemon 3D deleted
( Items: 701 - 720 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;
}