Skip to content

Commit

Permalink
Adapted table filter demo to show bigint column
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrecek234 committed Jun 17, 2024
1 parent cf408ce commit bd53577
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demos/collection/tablefilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
'type' => 'boolean',
]);

$model->addExpression('bigint', [
'expr' => $model->expr('['.$model->getIdField()->shortName.']'),
'type' => 'bigint',
]);

$grid->setModel($model);
$grid->addFilterColumn();

Expand Down

0 comments on commit bd53577

Please sign in to comment.