Stay organized with collections
Save and categorize content based on your preferences.
blockly > IFlyoutInflater
IFlyoutInflater interface
Signature:
export interface IFlyoutInflater
Methods
Method |
Description |
disposeItem(item) |
Disposes of the given element. If the element in question resides on the flyout workspace, it should remove itself. Implementers are not otherwise required to fully dispose of the element; it may be e.g. cached for performance purposes. |
gapForItem(state, defaultGap) |
Returns the amount of spacing that should follow the element corresponding to the given JSON representation. |
getType() |
Returns the type of items that this inflater is responsible for inflating. This should be the same as the name under which this inflater registers itself, as well as the value returned by getType() on the FlyoutItem objects returned by load() . |
load(state, flyout) |
Loads the object represented by the given state onto the workspace. Note that this method's interface is identical to that in ISerializer, to allow for code reuse. |
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 2025-05-16 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 2025-05-16 UTC."],[],[],null,["[blockly](./blockly.md) \\\u003e [IFlyoutInflater](./blockly.iflyoutinflater_interface.md)\n\nIFlyoutInflater interface\n-------------------------\n\n**Signature:** \n\n export interface IFlyoutInflater \n\nMethods\n-------\n\n| Method | Description |\n|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [disposeItem(item)](./blockly.iflyoutinflater_interface.disposeitem_1_methodsignature.md) | Disposes of the given element. If the element in question resides on the flyout workspace, it should remove itself. Implementers are not otherwise required to fully dispose of the element; it may be e.g. cached for performance purposes. |\n| [gapForItem(state, defaultGap)](./blockly.iflyoutinflater_interface.gapforitem_1_methodsignature.md) | Returns the amount of spacing that should follow the element corresponding to the given JSON representation. |\n| [getType()](./blockly.iflyoutinflater_interface.gettype_1_methodsignature.md) | Returns the type of items that this inflater is responsible for inflating. This should be the same as the name under which this inflater registers itself, as well as the value returned by `getType()` on the `FlyoutItem` objects returned by `load()`. |\n| [load(state, flyout)](./blockly.iflyoutinflater_interface.load_1_methodsignature.md) | Loads the object represented by the given state onto the workspace. Note that this method's interface is identical to that in ISerializer, to allow for code reuse. |"]]