Id Name Birthday Action
781 Xenophobic Xenomorph 23. 12. 1994
782 Expensive Eel 26. 12. 1975
783 French Chess in Crazyland 15. 5. 1942
784 Enthusiastic Eland 22. 11. 1992
785 The Secret Weapon of the Workout Joe 8. 8. 1968
786 Britney Spears' Cricket Horror 20. 2. 1955
787 Nihilistic Baseball Yoga 1. 4. 1950
788 Blazing Ostrich - Hot Pursuit 21. 5. 1992
789 Irish Kung-fu World Tour 3. 2. 1947
790 Claustrophobic Zamboni Hero 16. 6. 1990
791 Ultimate Motocross Interceptor 8. 11. 1960
792 Calm Cormorant 23. 11. 1990
793 Awful Antelope 5. 2. 1984
794 Tired Tortoise 24. 10. 1944
795 Exciting Afro Conspiracy 20. 4. 1975
796 Yellowed Yak 3. 3. 1993
797 Proud Pheasant 26. 12. 1954
798 Frightened Frog 4. 2. 1953
799 Dead or Alive Gun Online 8. 3. 1988
800 Day of the Lawnmower Creator 18. 12. 1963
( Items: 781 - 800 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;
}