Group actions:
Id Name Status
341 Inappropriate Arcade Armada deleted
342 Dwarven Fun Fight Club inactive
343 Nutty Newt active
344 Tense Tuatara active
345 Brainy Buffalo inactive
346 College Devil from Planet X deleted
347 Gentle Gibbon inactive
348 Allied Dodgeball - The Next Generation active
349 Crowded Crab active
350 Enchanting Eagle deleted
351 Wicked Weasel deleted
352 Sore Sloth deleted
353 Peaceful Sewer Smash deleted
354 Peaceful Chess Party deleted
355 Nasty Narwhal inactive
356 Bloody Booty Trader deleted
357 Weary Breakdancing II active
358 Exuberant Eel deleted
359 Nutty Newt active
360 Aquatic Katana Bandits deleted
( Items: 341 - 360 from 1016 )
  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;
}