Skip to content

Add boolean filter with nullable auto-detection#15

Open
conflictboy wants to merge 2 commits into
mainfrom
f-7822-pridat-neco-jako-setfilterboolean-a-addcolumnboolean
Open

Add boolean filter with nullable auto-detection#15
conflictboy wants to merge 2 commits into
mainfrom
f-7822-pridat-neco-jako-setfilterboolean-a-addcolumnboolean

Conversation

@conflictboy

Copy link
Copy Markdown
Contributor

Adds setFilterBoolean() on text columns and addFilterBoolean() on the grid. Renders a "vše / Ano / Ne" select; when the column is nullable (detected from Doctrine metadata, with a getter return-type fallback) it also offers "Nevyplněno" mapping to IS NULL. Nullability can be forced via the $nullable parameter.

conflictboy and others added 2 commits June 12, 2026 17:06
Adds setFilterBoolean() on text columns and addFilterBoolean() on the grid.
Renders a "vše / Ano / Ne" select; when the column is nullable (detected from
Doctrine metadata, with a getter return-type fallback) it also offers "Nevyplněno"
mapping to IS NULL. Nullability can be forced via the $nullable parameter.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds addColumnBoolean() which renders the column value through a latte filter
(default "boolIcon") invoked by name on the grid's Latte engine, so no per-grid
{define col-X} block is needed. The filter name is overridable. Returns the
ColumnText so setFilterBoolean() can be chained. Stays decoupled from any
app-specific filter implementation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant