Group actions:
Id Name Status
641 Dangerous Kangaroo Party inactive
642 Nasty Narwhal deleted
643 Nice Nightingale deleted
644 Mushy Mole deleted
645 Adorable Anteater inactive
646 Maniac Spatula Tycoon inactive
647 Confused Cheetah inactive
648 Shy Serval active
649 Demonic Sex Express active
650 Jittery Jay inactive
651 Fisher Price Yeti Dancers inactive
652 Cute Chicken inactive
653 Fair Flatworm active
654 Joyous Jackal active
655 Adventurous Armadillo deleted
656 Deadly Bazooka Hunter deleted
657 Blissful Amish Combat inactive
658 Fancy Falcon deleted
659 First-Person Katana Task Force active
660 Drab Deer active
( Items: 641 - 660 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;
}