MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

mmo-blocks-form

1 symbole · générée le 30 Nov 2026

element

mmo-blocks-form

mmo-blocks-form.jhs:1

The blocks of a record, as a form: for each block its type offers (blocks, in order), a fieldset of its fields -- the page editor's inputs (MMO.editor.SchemaForm), made from the block's schema. Its value is the record's blocks, {name: {its fields}}: a block the type no longer offers keeps its data (shown again once offered).

<mmo-blocks-form blocks value upload-labels readonly></mmo-blocks-form>
Étend
CustomShadowElement
The blocks' schemas are the server's (`MMO.editor.config.blocks`, `sections/_blocks/{name}.schema.json`, written for whoever may edit the pages): a block made in the section-type editor is offered at once, with no release. Built in its own content (the light dom), where the page editor's styles reach.
<mmo-blocks-form blocks="{= DGBatiment.articles.blocksOf({type})}" upload-labels='"_TAGS/site/articles"' value="{blocks}"></mmo-blocks-form>

Index

blocksthe names of the blocks, comma separated, in order (event,gallery)
valuethe record's blocks: an object, or its json
upload-labelswhere its images go in mmo.edms ("_TAGS/site/articles")
readonlythe blocks to see, not to change
value accessor
blocks accessoran attribute observed is set as a property: each has its setter
readonly accessor
init()
draw()Draw a fieldset per block, its fields made from its schema
(default)

Attributs4

blocks

mmo-blocks-form.jhs

the names of the blocks, comma separated, in order (event,gallery)

blocks

upload-labels

mmo-blocks-form.jhs

where its images go in mmo.edms ("_TAGS/site/articles")

upload-labels

Propriétés3

blocks

accessormmo-blocks-form.jhs:56

an attribute observed is set as a property: each has its setter

get blocks() set blocks(value)
Type
Array<string>

Méthodes2

Slots1