SchemaForm
MMO.editor · 1 symbole · générée le 30 Nov 2026
SchemaForm
SchemaForm.js:16A form made from a JSON schema of mmo.editor (a section type's, a block's: SectionType), the page editor's own inputs -- text, rich text (<mmo-editor>), link, address, image (mmo.edms, « From the library »), choice, yes/no, number, list of items, group -- writing into a value object: what a record's form uses for its blocks (<mmo-schema-form>). The inputs are MMO.editor.PageEditor's, borrowed as they are: one way of editing a field, wherever it is; no language but one, no display level but the one given.
- Espace de noms
MMO.editor
Index
| BORROWED static | the page editor's methods a form made from a schema uses | |
| constructor(node, schema, value, options) | ||
| render() | Draw the inputs of the schema's fields | |
| changed() | A field changed: told, with the whole value |
Constantes1
BORROWED
staticSchemaForm.js:18the page editor's methods a form made from a schema uses
Méthodes3
constructor(node, schema, value, options)
SchemaForm.js:27| node | HTMLElement | - where it is built |
| schema | Object | - {properties: {...}} |
| value = {} | Object | - what it writes into (its fields' defaults fill what it lacks) |
| options = {} |
render()
SchemaForm.js:47Draw the inputs of the schema's fields
changed()
SchemaForm.js:55A field changed: told, with the whole value