Group actions:
Id Name Status
901 Zany Zebra deleted
902 Jamaican Walrus Corps deleted
903 Outrageous Osprey deleted
904 Better Boar deleted
905 Disgusted Dunlin deleted
906 Disgusted Dingo deleted
907 Cheerful Cormorant active
908 Trendy Bubble Camp deleted
909 Sinister Fighter Romp deleted
910 Ugliest Unicorn deleted
911 Grumpy Gerbil inactive
912 Fatal Kitchen Master deleted
913 Ugliest Unicorn deleted
914 Bizarro Spork Melee deleted
915 Quaint Quetzal deleted
916 Good Guanaco deleted
917 Italian Burger in Vegas deleted
918 Fruity Chase Quiz deleted
919 Pleasant Penguin deleted
920 Telekinetic Hillbilly Odyssey active
( Items: 901 - 920 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;
}