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