Group actions:
Id Name Status
861 Fine Flamingo deleted
862 Enormous Rollerball Assassins deleted
863 Dark Dugong deleted
864 Frisky Sewer Espionage inactive
865 Tasteless Booty Master deleted
866 Deep Space Big Game Hunter Orchestra deleted
867 Lazy Leopard active
868 Lair of the Stick Princess deleted
869 Fatal Fishing Creator active
870 MTV Jazz Deathmatch active
871 Ill Impala inactive
872 Strange Scarab deleted
873 Galactic Bomberman Fun deleted
874 Adorable Addax inactive
875 Wooden Cookie Havoc deleted
876 Cautious Cod deleted
877 Inappropriate Cooking Underworld deleted
878 Helpful Hoopoe deleted
879 Almighty Surf in Busytown deleted
880 Fantastic Fox deleted
( Items: 861 - 880 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;
}