Cinder.Filters.Checkbox (Cinder v0.8.1)
View SourceCheckbox filter implementation for Cinder tables.
Provides single checkbox filtering for boolean and non-boolean fields. When checked, applies an equality filter with the configured value. When unchecked, no filter is applied (shows all records).
Examples
# Boolean field - value defaults to true
<:col field="published" filter={[type: :checkbox, label: "Show published only"]} />
# Non-boolean field - explicit value required
<:col field="status" filter={[type: :checkbox, value: "published", label: "Show published only"]} />
# Legacy format (still supported)
<:col field="active" filter={:checkbox} filter_options={[value: true, label: "Active accounts only"]} />Filter Options
value- The value to filter by when checked (defaults totruefor boolean fields)label- Display text for the checkbox (required)