Group actions:
Id Name Status
801 Strange Seahorse active
802 Battle Buddhist Massacre deleted
803 Adventurous Angelfish active
804 Viking Cricket Extra inactive
805 Lair of the Gun Championship deleted
806 Tropical Catapult Strikes Back deleted
807 Shiny Salamander active
808 Unsightly Unicorn active
809 Disturbed Dingo active
810 Tense Thrush inactive
811 Arcane Jetpack Frenzy active
812 Xerothermic Xenomorph active
813 Alive Anteater inactive
814 Bonk Spatula in Vegas deleted
815 Light Llama active
816 Average Anaconda deleted
817 Dance Dance Night City deleted
818 Jolly Jellyfish deleted
819 Energetic Elk active
820 Atomic Carnival X deleted
( Items: 801 - 820 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;
}