Group actions:
Id Name Status
281 Wandering Wallaby inactive
282 Black Bird deleted
283 Wicked Whale deleted
284 Upset Unicorn deleted
285 Beautiful Tetris Task Force deleted
286 Preschool Bandicoot Slam deleted
287 Mind-Bending Harpoon Live deleted
288 Thankful Thrush deleted
289 Lovely Lizard deleted
290 First-Person Toon Horror deleted
291 Cheerful Cat deleted
292 Faithful Fox deleted
293 Perfect Puffin deleted
294 Blue-eyed Badger deleted
295 Heavy Metal Outlaw Boy deleted
296 Quiet Surgery vs. Capcom deleted
297 Jealous Jay deleted
298 Magnetic Conga Ransom deleted
299 Irresistible Speed Scandal active
300 Shameful Hoedown Pioneer deleted
( Items: 281 - 300 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;
}