Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockCreate > (constructor)
Events.BlockCreate.(constructor)
Constructs a new instance of the BlockCreate
class
Signature:
constructor(opt_block?: Block);
Parameters
Parameter |
Type |
Description |
opt_block |
Block |
(Optional) The created block. Undefined for a blank event. |
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\u003eEvents.BlockCreate\u003c/code\u003e class constructor creates a new instance of the \u003ccode\u003eBlockCreate\u003c/code\u003e class, which represents the creation of a block in Blockly.\u003c/p\u003e\n"],["\u003cp\u003eIt optionally accepts a \u003ccode\u003eBlock\u003c/code\u003e object as a parameter to represent the specific block that was created.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Events](./blockly.events_namespace.md) \\\u003e [BlockCreate](./blockly.events_namespace.blockcreate_class.md) \\\u003e [(constructor)](./blockly.events_namespace.blockcreate_class._constructor__1_constructor.md)\n\nEvents.BlockCreate.(constructor)\n--------------------------------\n\nConstructs a new instance of the `BlockCreate` class\n\n**Signature:** \n\n constructor(opt_block?: Block);\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|-----------------------------------|--------------------------------------------------------------|\n| opt_block | [Block](./blockly.block_class.md) | *(Optional)* The created block. Undefined for a blank event. |"]]