Id Name Birthday Action
521 Different Dotterel 22. 10. 1952
522 Ultimate Sword Collection 17. 12. 1987
523 Nice Newt 24. 10. 1945
524 Grumpy Gibbon 5. 9. 1970
525 BudgetSoft Presents: Fashion Revenge 8. 9. 1993
526 Custom Dating Extra 6. 12. 1953
527 Hindu Surf Project 26. 9. 1977
528 Sensual Toon Sisters 19. 4. 1972
529 Proud Pintail 13. 2. 1958
530 Grieving Goshawk 6. 10. 1959
531 Cautious Cardinal 14. 3. 1957
532 Fisher Price Handgun Scam 14. 2. 1941
533 Good Grouse 4. 9. 1943
534 Clean Chicken 7. 4. 1955
535 Courageous Caracal 10. 7. 1932
536 Aquatic Motocross Marines 16. 8. 1998
537 Interactive Biplane Palace 7. 10. 1989
538 Mexican Insect Warrior 28. 5. 1932
539 Odd Octopus 21. 9. 1944
540 Zany Desert Jam 25. 5. 1938
( Items: 521 - 540 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;
}