Id Name Birthday Action
181 Underwater Donkey Princess 11. 7. 1930
182 Calm Chinchilla 27. 12. 1990
183 Bloody Bug 17. 7. 1953
184 8-Bit WWE World 6. 2. 1939
185 Glorious Goosander 6. 11. 1989
186 Prickly Pigeon 12. 4. 2000
187 Arrogant Alpaca 23. 9. 1960
188 Vast Vendace 22. 6. 1967
189 Frail Fly 27. 7. 1990
190 Shady Robot Inferno 13. 3. 1939
191 Real Raccoon 27. 1. 1995
192 Nasty Narwhal 20. 3. 1972
193 Old-fashioned Oryx 4. 5. 1939
194 Tired Thrush 2. 7. 1976
195 Fisher Price Lego Romp 10. 3. 1956
196 Misty Moose 23. 12. 1990
197 Better Buffalo 28. 6. 1983
198 Obnoxious Otter 20. 5. 1979
199 Happy Hornet 23. 8. 1976
200 Itchy Ibis 28. 6. 1953
( Items: 181 - 200 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;
}