nesteditems - 创建专门属于当前记录的嵌套记录。
items:
label: Menu Items
type: nesteditems
span: adaptive
form:
fields:
title:
label: Title
type: text以下属性受支持。
| Property | Description |
|---|---|
| label | a name when displaying the form field to the user. |
| default | specifies a default array value, optional. |
| comment | places a descriptive comment below the field. |
| form | inline form field definitions. |
| maxDepth | displays an interface for reordering records, specifying the maximum depth. Set to 0 for unlimited depth. |
| customMessages | customize the messages used in the user interface. |
像其他任何表单一样,嵌套项支持通过将字段置于 form 定义的 tabs 或 secondaryTabs 属性下来使用标签页。
tabbed_content:
type: nesteditems
form:
tabs:
fields:
# ...customMessages 属性用于修改字段定义中使用的各种消息。可用的消息与 关系控制器行为 的消息共享。
author:
type: nesteditems
customMessages:
buttonCreate: New Author
titleUpdateForm: Update Author
titleCreateForm: Create Author