Stay organized with collections
Save and categorize content based on your preferences.
blockly > registry > Type
registry.Type class
A name with the type of the element stored in the generic.
Signature:
export declare class Type<_T>
Constructors
Constructor |
Modifiers |
Description |
(constructor)(name) |
|
Constructs a new instance of the Type class |
Properties
Methods
Method |
Modifiers |
Description |
toString() |
|
Returns the name of the type. |
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."],[[["The `registry.Type` class manages the association between a name and the type of an element stored within the registry."],["It provides static properties representing various Blockly component types, such as renderers, themes, and input types."],["Developers can use these properties to register and retrieve elements of specific types from the registry."],["This class ensures type safety and simplifies the management of different components within the Blockly system."]]],["The `Type` class, part of the `registry` namespace, holds a name and type of an element. It's instantiated with a name. Key static properties include: `BLOCK_DRAGGER`, `CONNECTION_CHECKER`, `CURSOR`, `EVENT`, `FIELD`, `FLYOUTS_HORIZONTAL_TOOLBOX`, `FLYOUTS_VERTICAL_TOOLBOX`, `INPUT`, `METRICS_MANAGER`, `RENDERER`, `THEME`, `TOOLBOX_ITEM`, and `TOOLBOX`. These define types for various Blockly components. The `toString()` method retrieves the type's name.\n"]]