Group actions:
Id Name Status
941 Jack Thompson Hang Glider Sisters deleted
942 Jolly Jackal deleted
943 Bad Bat deleted
944 Real Rook deleted
945 Ingenious Programming Domination deleted
946 Musical Paintball Punishment deleted
947 Japanese Boxing Knights deleted
948 Distinct Dormouse deleted
949 Upset Unicorn inactive
950 Testy Tapir deleted
951 Final Sunshine Dash deleted
952 Innocent Impala active
953 Puzzled Penguin deleted
954 Fair Falcon deleted
955 Jolly Jellyfish active
956 Famous Fly deleted
957 Tender Tarsier deleted
958 Gentle Goosander deleted
959 The Last Karaoke from Mars active
960 Unsightly Unicorn active
( Items: 941 - 960 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;
}