Id Name Birthday Action
441 Uptight Unicorn 14. 7. 1958
442 Misty Macaque 17. 9. 1974
443 Imperial Hoedown Havoc 16. 8. 1959
444 Panicky Porpoise 8. 5. 1994
445 Attractive Alligator 10. 8. 1941
446 Joyous Jay 2. 8. 1998
447 Spectacular Thief in the Hood 6. 2. 1953
448 Big Stunt from Mars 23. 11. 1974
449 Masters of Beach School 2. 9. 1951
450 Disturbed Dog 14. 10. 1946
451 Horrible Horse 6. 10. 1995
452 Beautiful Driving Vengeance 18. 8. 1954
453 Lazy Breakdancing Challenge 24. 5. 1955
454 Super Spider 24. 12. 1963
455 Alive Ant 8. 4. 1954
456 Pleasant Platypus 4. 1. 1992
457 Hindu Frisbee in Space 5. 5. 2000
458 Rockin' Lego Patrol 8. 4. 1948
459 Better Barracuda 26. 3. 1939
460 Defeated Dugong 8. 11. 2000
( Items: 441 - 460 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], true);

	$grid->addColumnText('id', 'Id')
		->setSortable();

	$grid->addColumnText('email', 'E-mail')
		->setSortable()
		->setFilterText();

	$grid->addColumnText('name', 'Name')
		->setFilterText();

	$grid->addColumnDateTime('birth_date', 'Birthday')
		->setFormat('j. n. Y');

	$grid->setItemsDetail();

	$grid->setTemplateFile(__DIR__ . '/Templates/grid/item-detail-grid.latte');

	return $grid;
}