Group actions:
Id Name Status
201 Crazy Copperhead deleted
202 Smiling Shark inactive
203 Amused Ape active
204 Concerned Cow deleted
205 Worrisome Wren inactive
206 Romantic Chocobo Preacher active
207 Inappropriate Pinball - The Gathering Storm active
208 World of Graveyard Explosion active
209 Revenge of the Math Saloon inactive
210 Search for the Bowling Slaughter deleted
211 Bewildering Amish Train active
212 Thoughtless Thrush deleted
213 Atomic STD Rush inactive
214 Virtua Architecture Squadron deleted
215 Wicked Wasp inactive
216 Vast Vulture inactive
217 Yucky Yak deleted
218 Hindu Wheelchair City inactive
219 Foolish Fly deleted
220 Homely Hornet inactive
( Items: 201 - 220 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;
}