blockly > ButtonFlyoutInflater > gapForItem
ButtonFlyoutInflater.gapForItem() method
Returns the amount of space that should follow this button.
Signature:
gapForItem(state: object, defaultGap: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
state | object | A JSON representation of a flyout button. |
defaultGap | number | The default spacing for flyout items. |
Returns:
number
The amount of space that should follow this button.