Group actions:
Id Name Status
101 Elite Grizzly Bear Insanity deleted
102 Legendary Yak in Africa active
103 Testy Tiger deleted
104 Professional Cheese Trivia inactive
105 Thoughtful Teira deleted
106 Unstoppable Transvestite Country inactive
107 Blue-eyed Barracuda deleted
108 Motionless Macaw inactive
109 Mighty Helicopter Special Edition active
110 Mystical Volleyball Dudes deleted
111 Neon Driving Squadron active
112 Lazy Locust deleted
113 Luigi Quantum Freak deleted
114 Profane Buddhist Dystopia active
115 Elegant Bowling Fight active
116 Delightful Duck active
117 Bizarre Kangaroo - 2nd Impact active
118 Creepy Cicada inactive
119 Transvestite Plumber Feud deleted
120 Ugly Unicorn deleted
( Items: 101 - 120 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;
}