Skip to main content

Home > blockly > LabelFlyoutInflater > gapForItem

LabelFlyoutInflater.gapForItem() method

Returns the amount of space that should follow this label.

Signature:

gapForItem(state: object, defaultGap: number): number;

Parameters

ParameterTypeDescription
stateobjectA JSON representation of a flyout label.
defaultGapnumberThe default spacing for flyout items.

Returns:

number

The amount of space that should follow this label.