Group actions:
Id Name Status
321 Zealous Zebra deleted
322 Real Raccoon active
323 Fiery Equestrian - The Revenge active
324 Bad Barracuda active
325 Jedi Rabbit Brothers inactive
326 Invisible Driving Caper active
327 Stormy Spider inactive
328 Courageous Crocodile active
329 Clumsy Crossbill deleted
330 Colorful Chipmunk deleted
331 Sonic Castlevania Championship deleted
332 Light Ladybird deleted
333 Inexpensive Ibex deleted
334 Perfect Panda deleted
335 Depressed Duck active
336 Irish Motorcycle Uprising deleted
337 Curious Crossbill deleted
338 Agreeable Ant deleted
339 Enchanting Eagle deleted
340 Plain Peafowl deleted
( Items: 321 - 340 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;
}