Group actions:
Id Name Status
261 Good Goat deleted
262 Upset Unicorn active
263 Nasty Unicorn of the Blood God deleted
264 Virtua Casino Gaiden inactive
265 Profane Trailer Park Extravaganza active
266 Obnoxious Oryx active
267 Sid Meier Quiz Agent deleted
268 Spirit of the Bow Hunter Dash deleted
269 It a Mad, Mad Wheelchair Dash deleted
270 Gorgeous Gaur deleted
271 Masters of Fantasy Rangers active
272 Invisible Badminton Insurrection deleted
273 Comfortable Coyote deleted
274 Cthulhu Lizard Operatives inactive
275 Lazy Louse deleted
276 Mickey Mech Restaurant active
277 Prickly Partridge inactive
278 Sleepy Sandpiper deleted
279 Scandinavian Booty Marines deleted
280 Good Goose deleted
( Items: 261 - 280 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;
}