Group actions:
Id Name Status
461 Spunky Underwear Power deleted
462 Turbo Castlevania Remix active
463 Defiant Duck inactive
464 Magnificent Mouse deleted
465 Poor Platypus inactive
466 Bad Barracuda inactive
467 Mind-Bending Railroad Smackdown deleted
468 Soviet Bongo Assassins inactive
469 Stupid Squirrel active
470 Christian Surf in Middle-Earth inactive
471 Poor Puffin active
472 Blue-eyed Badger deleted
473 Brave Buzzard inactive
474 Derek Smart Raccoon Colosseum inactive
475 Successful Skylark deleted
476 Silly Squirrel inactive
477 No One Can Stop the Leisure Suit Shack deleted
478 Wandering Wolf active
479 Clean Civet inactive
480 Courageous Cheetah inactive
( Items: 461 - 480 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;
}