Docs (4.0.0)
ui method

spacer

Creates a preset UISpacer constructor using the provided options.

static

spacer(preset: ui.PresetType<UISpacer>): ViewClass<UISpacer>

spacer(width?: number | string, height?: number | string): ViewClass<UISpacer>

Parameters

  • preset — The properties, bindings, and event handlers that will be preset on each instance of the resulting class
  • width — Preset spacer width
  • height — Preset spacer height
  • minWidth — Preset spacer minimum width
  • minHeight — Preset spacer minimum height

Return value

A new class that extends UISpacer

Related

  • uiAn object with functions for creating UI components and other resources.