Group actions:
Id Name Status
741 Unpleasant Fencing Epidemic inactive
742 Space Music Underworld active
743 Day of the Chase Strikes Again deleted
744 Screaming Lawnmower School deleted
745 Worried Wryneck deleted
746 Victorious Vicuña inactive
747 Third-World Dog Smash deleted
748 Aero Outlaw of Mystery active
749 Street STD Summit deleted
750 Happy Batman Roundup deleted
751 Perfect Piranha deleted
752 Colorful Constrictor deleted
753 Hurt Hedgehog inactive
754 Shameful Sunshine III deleted
755 Unusual Unicorn deleted
756 Thankful Tern deleted
757 Fruity Acid Revisited deleted
758 Talented Teira deleted
759 My Very Own Army Forever deleted
760 Vast Vicuña inactive
( Items: 741 - 760 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;
}