该 checkbox 字段渲染一个复选框。
show_content:
type: checkbox
label: Display content以下 字段属性 常用。
| Property | Description |
|---|---|
| label | a name when displaying the form field to the user. |
| default | a default value to use for new records. |
| comment | text to display below the checkbox. |
您可以使用 default 属性,使复选框默认选中。
show_content:
type: checkbox
label: Display content
default: true使用 comment 以显示一些附带文本。
is_active:
type: checkbox
label: Active
comment: Check this box to make the record active.