Group actions:
Id Name Status
881 Android Piano Derby deleted
882 Nihilistic Scooter Hell inactive
883 Confused Curlew active
884 Jealous Jaguar inactive
885 Careful Cod inactive
886 Strange Shrike active
887 Scary Swiftlet deleted
888 Everybody Hates the Sumo Princess deleted
889 Puzzled Pigeon active
890 Maniac Paintball Rave deleted
891 Ugliest Unicorn deleted
892 Samurai Whale Underground deleted
893 Wild Worm active
894 Impossible Ibex active
895 Thankful Tarantula inactive
896 Happy Herring deleted
897 Embarrassed Eel deleted
898 Unpleasant Mushroom Corps deleted
899 Dizzy Dove deleted
900 The Six Million Dollar Whale Baseball deleted
( Items: 881 - 900 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;
}