Skip to content

Switch Filter

A switch filter allows you to filter your table based off a single boolean state.

INFO

Switch filters are only run when the toggled on. If in an off state, they are not included in the request and their callbacks are not run.

Common Methods

For a list of common filter methods, see here.

Getting Started

You can create a new switch filter as so:

go
SwitchFilter("active")

Checkbox

You can convert your switch filter to a checkbox as so:

go
SwitchFilter("active").
    Checkbox()

Released under the MIT License.