Group actions:
Id Name Status
489 3D Amish Solid active
492 8-Bit Paintball Fiesta active
184 8-Bit WWE World active
582 A Boy and His Dog Strikes Again active
874 Adorable Addax active
645 Adorable Anteater active
142 Adventurous Aardvark active
635 Adventurous Addax active
236 Adventurous Albatross active
803 Adventurous Angelfish active
608 Adventurous Armadillo active
655 Adventurous Armadillo active
365 Aero Jetski Assault inactive
748 Aero Outlaw of Mystery active
242 Aero Shopping Unit active
638 Aggressive Alpaca active
28 Aggressive Angelfish active
165 Aggressive Antelope active
627 Agreeable Alligator active
338 Agreeable Ant deleted
( Items: 1 - 20 from 1000 )
  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('left')
		->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;
}