Group actions:
Id Name Status
981 Dwarven Bomberman Showdown deleted
982 Sleepy Stoat deleted
983 Busy Buzzard inactive
984 Calm Caterpillar deleted
985 M.C. Escher Bass Thieves inactive
986 My Little Punching vs. The Space Mutants active
987 The Muppets Computer EX active
988 Rad Bandicoot on Wheels deleted
989 God of Ninja Spree deleted
990 Filthy Fly active
991 Anxious Anteater deleted
992 Infinite Biplane in the Desert deleted
993 Smiling Seahorse deleted
994 Brave Beetle deleted
995 Testy Tern deleted
996 Modern Moth inactive
997 Faithful Ferret deleted
998 Helpless Hawk deleted
999 Enraged Internet Base deleted
1 000 Wide-eyed Warbler deleted
( Items: 981 - 1000 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;
}