Group actions:
Id Name Status
221 Forbidden Pirate Detective inactive
222 Unholy Karate Desperadoes deleted
223 Amused Ant inactive
224 Vast Vulture active
225 Japanese Pogo Insurrection active
226 Thoughtful Thrush deleted
227 Terrible Toucan inactive
228 American Math Wranglers deleted
229 Shameful Dungeon Romp active
230 Glamorous Gull active
231 Insane Battleship Island inactive
232 Annoying Aardvark active
233 Attractive Addax deleted
234 Weary Catapult Hop-A-Bout inactive
235 Courageous Constrictor active
236 Adventurous Albatross inactive
237 Glorious Gnu deleted
238 Full Metal Monkey Rally inactive
239 Big Bird Pirate Corps inactive
240 Frantic Finch inactive
( Items: 221 - 240 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;
}