Group actions:
Id Name Status
241 Long Lapwing deleted
242 Aero Shopping Unit active
243 Prickly Panda deleted
244 Screaming Conga Train deleted
245 Smiling Shark inactive
246 Fair Fowl active
247 Dizzy Dog deleted
248 Sid Meier Sandwich Studio deleted
249 Obsessive-Compulsive Pony Desperadoes active
250 Master Chief Stapler Ultra deleted
251 Unremarkable Stick Struggle deleted
252 Brain-Damaged Cannibal Rider active
253 Agreeable Anteater deleted
254 In Search of Office Exhibition deleted
255 Encouraging Echidna deleted
256 Ashamed Aardvark active
257 Prickly Puffin deleted
258 Brave Bee deleted
259 Joyous Jellyfish deleted
260 Anxious Addax deleted
( Items: 241 - 260 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;
}