Stay organized with collections
Save and categorize content based on your preferences.
blockly > Block > saveExtraState
An optional serialization method for defining how to serialize the block's extra state (eg mutation state) to something JSON compatible. This must be coupled with defining loadExtraState
.
Signature:
saveExtraState?: (doFullSerialization?: boolean) => any;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eASTNode.createConnectionNode()\u003c/code\u003e method creates an AST node that references a specific connection within a Blockly workspace.\u003c/p\u003e\n"],["\u003cp\u003eIf the target connection is part of a parent input, the method generates an input-type AST node to encapsulate the connection.\u003c/p\u003e\n"],["\u003cp\u003eThe method accepts a \u003ccode\u003eConnection\u003c/code\u003e object as input, which designates the connection the node will point to.\u003c/p\u003e\n"],["\u003cp\u003eIt returns either an \u003ccode\u003eASTNode\u003c/code\u003e object representing the connection or \u003ccode\u003enull\u003c/code\u003e if node creation is unsuccessful.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Block](./blockly.block_class.md) \\\u003e [saveExtraState](./blockly.block_class.saveextrastate_property.md)\n\nBlock.saveExtraState property\n-----------------------------\n\nAn optional serialization method for defining how to serialize the block's extra state (eg mutation state) to something JSON compatible. This must be coupled with defining `loadExtraState`.\n\n**Signature:** \n\n saveExtraState?: (doFullSerialization?: boolean) =\u003e any;"]]