checkbox - 用作一个二进制复选框,将预定义条件或查询应用于列表,开启或关闭。使用 0 代表关闭和 1 代表开启作为默认值
is_published:
label: Hide Published
type: checkbox
conditions: is_published <> true以下属性可用于该过滤器。
| Property | Description |
|---|---|
| default | set to true to make the filter checked by default. Default false. |
| conditions | a custom SQL select statement to use for the filter. |
你可以设置 default 值以使筛选器默认选中。
is_published:
label: Hide Published
type: checkbox
default: 1