Group actions:
Id Name Status
541 Frail Finch active
542 Magnificent Mamba inactive
543 Itchy Impala deleted
544 Exquisite Furry Online deleted
545 Defiant Deer deleted
546 Final Arcade in the Bayou deleted
547 Brainy Beaver deleted
548 Graceful Gorilla active
549 Annoying Antelope deleted
550 Inexpensive Iguana deleted
551 Amazing Whale Brothers inactive
552 Joyous Jackal deleted
553 Thankful Tarantula deleted
554 Insane Axe School deleted
555 Arrogant Armadillo deleted
556 Armored Skate Plus active
557 Barbie Fighter Alpha deleted
558 Odd Otter deleted
559 Sparkling Snail deleted
560 Defiant Dugong deleted
( Items: 541 - 560 from 1016 )
  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;
}