Id Name Birthday Action
701 Rich Raccoon 2. 7. 1972
702 Elated Eland 14. 8. 1998
703 Frantic Flatworm 15. 2. 1976
704 Grieving Gnat 9. 7. 1987
705 Itchy Ibex 4. 6. 1988
706 Lair of the Tank Police 11. 10. 1957
707 Ancient Chocobo Disaster 24. 9. 1935
708 Tactical Hitman Power 17. 9. 1998
709 Communist Mahjong Agent 12. 7. 1996
710 Curse of the Mafia DJ 25. 3. 1935
711 Dangerous Matador Competition 14. 7. 1938
712 Beautiful Transvestite Machine 10. 2. 1930
713 Happy Hawk 21. 2. 1950
714 Cute Cormorant 23. 4. 1930
715 Interstellar Toon Tale 9. 12. 1973
716 Jittery Jackal 4. 11. 1936
717 Leisure Suit Grizzly Bear - Total War 22. 11. 1976
718 Curious Crossbill 15. 7. 1991
719 Yellowed Yak 23. 8. 1931
720 Catholic Pokemon 3D 7. 11. 1951
( Items: 701 - 720 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;
}