Handbook · Reference · Blockly · Items
Blockly: Items
Where in the UI. Scripts tab toolbox.
Create, retype, trash, apply mutations.
| Block id | Read as | Purpose |
|---|---|---|
containd_create_root_list | create root list | callHost(createItem) with parentId null → itemId |
containd_create_root_list_by_id | create root list by id | callHost(createItem) with parentId null and explicit template/element ids → itemId |
containd_create_child_under_item | create child under item | callHost(createChildItem) with parentId → itemId |
containd_create_child_under_item_by_id | create child under item by id | callHost(createChildItem) with parentId and explicit template/element ids → itemId |
containd_create_child_on_bound_item | create child on bound item | callHost(createChildItem) on bound item → itemId |
containd_create_child_on_bound_item_by_id | create child on bound item by id | callHost(createChildItem) on bound item with explicit template/element ids → itemId |
containd_set_element_type_on_bound_item | set element type on bound item | same template; resets layout to 0 |
containd_set_element_type_on_item | set element type on item | callHost(setElementType) with itemId — requires write.relatives when not bound item |
containd_apply_element_defaults_on_bound_item | apply element defaults on bound item | item fields, categories, or both |
containd_apply_element_defaults_on_item | apply element defaults on item | callHost(applyElementDefaults) with itemId — requires write.relatives when not bound item |
containd_move_item_to_trash | move item to trash | silent delete to trash by default; requires write.item |
containd_create_item | create item | callHost(createItem) → itemId |
containd_create_child_item | create child item | callHost(createChildItem) → itemId |
containd_create_item_extended | create item extended | create item extended source … template … element … title … parent … interactive … AI … language … defer lifecycle … onCreated script … onAiComplete script … prompt context … defaults JSON … media uris JSON … category ids JSON … |
containd_create_item_extended_json | create item extended json | callHost(createItemExtended) with full JSON request → itemId |
containd_apply_mutations | apply mutations | JSON array of mutation records |