tachybase_todo/docs/en-US/api/client/schema-designer/schema-initializer.md

20 lines
503 B
Markdown
Raw Normal View History

# SchemaInitializer
2023-02-18 23:42:55 +08:00
Used for the initialization of various schemas. Newly added schema can be inserted anywhere in an existing schema node, including:
```ts
{
properties: {
2023-02-18 23:42:55 +08:00
// beforeBegin - Insert in front of the current node
node1: {
properties: {
2023-02-18 23:42:55 +08:00
// afterBegin - Insert in front of the first child node of the current node
// ...
2023-02-18 23:42:55 +08:00
// beforeEnd - After the last child node of the current node
},
},
2023-02-18 23:42:55 +08:00
// afterEnd - After the current node
},
}
```