该 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.