Group actions:
Id Name Status
621 Dark Dormouse deleted
622 Naughty Newt deleted
623 Terrible Tuatara deleted
624 Easy Emu inactive
625 Electric Mummy Epidemic deleted
626 Different Dugong deleted
627 Agreeable Alligator active
628 Unpleasant Caveman XP active
629 Wrong Walrus inactive
630 Arrogant Albatross active
631 Barbie Barcode in the Salad Kingdom active
632 Anxious Anteater active
633 Subatomic Shopping Palace deleted
634 Nighttime Puppy - The Revenge inactive
635 Adventurous Addax active
636 Outrageous Oyster inactive
637 Nudist City Man deleted
638 Aggressive Alpaca deleted
639 Elite Llama Tycoon active
640 Weary Wren active
( Items: 621 - 640 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;
}