Handbook · Reference · Blockly · Class
Blockly: Class
Where in the UI. Scripts tab toolbox.
Class variables, membership, list/run class scripts and API.
| Block id | Read as | Purpose |
|---|---|---|
containd_read_class_variable | read class variable | pick a class-authored variable key |
containd_read_class_variable_on_item | read class variable on item | callHost(getItemVariable) with itemId — class-authored key dropdown |
containd_class_variable_exists | class variable exists | True when the class-authored key is stored on the active item. |
containd_class_variable_exists_on_item | class variable exists on item | True when the class-authored key is stored on the given item. |
containd_write_class_variable | write class variable | pick a class-authored key; TYPE auto-fills from the Variables node |
containd_write_class_variable_on_item | write class variable on item | callHost(setItemVariable) with itemId — class-authored key dropdown |
containd_delete_class_variable | delete class variable | class-authored key dropdown |
containd_delete_class_variable_on_item | delete class variable on item | callHost(deleteItemVariable) with itemId — class-authored key dropdown |
containd_class_id | class id | Project class id — every class in the project, including those not attached to this template. Plug into item has class, or replace with a text block to type any id. |
containd_item_has_class | item has class | true when the bound item element has the class attached or via inheritance. Plug a class picker or type any class id string. Membership is resolved on the target item’s template. |
containd_item_has_class_on_item | item has class on item | callHost(itemHasClass) with itemId — use 0 for bound item; requires read.relatives for other items. Plug a class picker or type any class id string. |
containd_list_item_classes | list item classes | effective Template Class ids for the bound item (attached + ancestors) |
containd_list_item_classes_on_item | list item classes on item | use 0 for bound item; requires read.relatives for other items |
containd_list_item_scripts | list item scripts | script ids exposed via trigger-api on this item |
containd_list_item_scripts_on_item | list item scripts on item | use 0 for bound item; requires read.relatives for other items |
containd_list_item_scripts_by_prefix | list item scripts by prefix | matches script.id prefix on this item |
containd_list_item_scripts_by_prefix_on_item | list item scripts by prefix on item | use 0 for bound item |
containd_run_item_script | run item script | false when id is not exposed; requires scripts.invoke |
containd_run_item_script_on_item | run item script on item | use 0 for bound item; requires scripts.invoke + read.relatives for others |
containd_run_class_api | run class api | class Export script from dropdown |
containd_run_class_api_on_item | run class api on item | callHost(runItemScript) with itemId — class Export from dropdown |