Stay organized with collections
Save and categorize content based on your preferences.
blockly > SeparatorFlyoutInflater
SeparatorFlyoutInflater class
Class responsible for creating separators for flyouts.
Signature:
export declare class SeparatorFlyoutInflater implements IFlyoutInflater
Implements: IFlyoutInflater
Methods
Method |
Modifiers |
Description |
disposeItem(_item) |
|
Disposes of the given separator. Intentional no-op. |
gapForItem(state, defaultGap) |
|
Returns the size of the separator. See load for more details. |
getType() |
|
Returns the type of items this inflater is responsible for creating. |
load(_state, flyout) |
|
Inflates a dummy flyout separator. The flyout automatically creates separators between every element with a size determined by calling gapForElement on the relevant inflater. Additionally, users can explicitly add separators in the flyout definition. When separators (implicitly or explicitly created) follow one another, the gap of the last one propagates backwards and flattens to one separator. This flattening is not additive; if there are initially separators of 2, 3, and 4 pixels, after normalization there will be one separator of 4 pixels. Therefore, this method returns a zero-width separator, which will be replaced by the one implicitly created by the flyout based on the value returned by gapForElement, which knows the default gap, unlike this method. |
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 [SeparatorFlyoutInflater](./blockly.separatorflyoutinflater_class.md)\n\nSeparatorFlyoutInflater class\n-----------------------------\n\nClass responsible for creating separators for flyouts.\n\n**Signature:** \n\n export declare class SeparatorFlyoutInflater implements IFlyoutInflater \n\n**Implements:** [IFlyoutInflater](./blockly.iflyoutinflater_interface.md)\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|-------------------------------------------------------------------------------------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [disposeItem(_item)](./blockly.separatorflyoutinflater_class.disposeitem_1_method.md) | | Disposes of the given separator. Intentional no-op. |\n| [gapForItem(state, defaultGap)](./blockly.separatorflyoutinflater_class.gapforitem_1_method.md) | | Returns the size of the separator. See `load` for more details. |\n| [getType()](./blockly.separatorflyoutinflater_class.gettype_1_method.md) | | Returns the type of items this inflater is responsible for creating. |\n| [load(_state, flyout)](./blockly.separatorflyoutinflater_class.load_1_method.md) | | Inflates a dummy flyout separator. The flyout automatically creates separators between every element with a size determined by calling gapForElement on the relevant inflater. Additionally, users can explicitly add separators in the flyout definition. When separators (implicitly or explicitly created) follow one another, the gap of the last one propagates backwards and flattens to one separator. This flattening is not additive; if there are initially separators of 2, 3, and 4 pixels, after normalization there will be one separator of 4 pixels. Therefore, this method returns a zero-width separator, which will be replaced by the one implicitly created by the flyout based on the value returned by gapForElement, which knows the default gap, unlike this method. |"]]