Group actions:
Id Name Status
181 Underwater Donkey Princess deleted
182 Calm Chinchilla inactive
183 Bloody Bug deleted
184 8-Bit WWE World active
185 Glorious Goosander deleted
186 Prickly Pigeon active
187 Arrogant Alpaca deleted
188 Vast Vendace active
189 Frail Fly inactive
190 Shady Robot Inferno deleted
191 Real Raccoon inactive
192 Nasty Narwhal deleted
193 Old-fashioned Oryx inactive
194 Tired Thrush inactive
195 Fisher Price Lego Romp inactive
196 Misty Moose active
197 Better Buffalo deleted
198 Obnoxious Otter deleted
199 Happy Hornet active
200 Itchy Ibis deleted
( Items: 181 - 200 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;
}