Group actions:
Id Name Status
761 Vivacious Vendace active
762 Grotesque Gannet active
763 Doubtful Deer deleted
764 Grieving Grouse active
765 Insane Rugby of Might and Magic deleted
766 Unpleasant Volleyball Caper deleted
767 Heavy Chase Explosion deleted
768 Friendly Fish deleted
769 Lost Puzzle Voyage deleted
770 The Six Million Dollar Sniper Tycoon deleted
771 Enchanting Echidna deleted
772 BudgetSoft Presents: Plumber Train active
773 Future Quiz Desperadoes deleted
774 Psycho Banana Overlords active
775 Thankful Teira deleted
776 College Dance Siege deleted
777 Rich Reindeer active
778 Heroic Graveyard Fiesta deleted
779 Annoyed Anteater deleted
780 Confused Cheetah active
( Items: 761 - 780 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;
}