Skip to content

Commit

Permalink
Použití atributu column pro sloupce místo Renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
bojovyletoun committed Dec 8, 2022
1 parent 84a90a2 commit c41bf1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/AdminModule/Components/GroupsGridControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ public function createComponentPatrolsGrid(string $name): DataGrid
->setSortable()
->setFilterText();

$grid->addColumnText('variableSymbol', 'VS ')->setSortable() // je stejný jako název skupiny
->setRenderer(static fn ($t) => $t->getVariableSymbolText())
$grid->addColumnText('variableSymbol', 'VS ',"variableSymbolText")->setSortable() // je stejný jako název skupiny
->setFilterText();

$grid->addColumnText('leader', 'Vedoucí')->setSortable()
Expand Down

0 comments on commit c41bf1c

Please sign in to comment.