Dropdown Props

Hierarchy

Properties

acceptEmpty?: boolean
color?: PBColor4

default=(0.0,0.0,0.0,1.0)

disabled?: boolean
emptyLabel?: string
font?: UiFontType
fontSize?: ScaleUnit
key?: Key

Uinique key to identiy elments when iterating arrays

onInputDown?: Partial<Record<InputAction, EventSystemCallback>>

triggered on input down event

onInputDrag?: Partial<Record<InputAction, EventSystemCallback>>

triggered on input drag event

onInputDragEnd?: Partial<Record<InputAction, EventSystemCallback>>

triggered on input drag event

onInputDragLocked?: Partial<Record<InputAction, EventSystemCallback>>

triggered on input drag event

onInputUp?: Partial<Record<InputAction, EventSystemCallback>>

triggered on input up event

onMouseDown?: EventSystemCallback

triggered on mouse down event

onMouseDrag?: EventSystemCallback

triggered on mouse drag event

onMouseDragEnd?: EventSystemCallback

triggered on mouse drag event

onMouseDragLocked?: EventSystemCallback

triggered on mouse drag event

onMouseEnter?: EventSystemCallback

triggered on mouse hover event

onMouseLeave?: EventSystemCallback

triggered on mouse leave event

triggered on mouse up event

options?: string[]
selectedIndex?: number

default=null when accept_empty==true; default=0 when accept_empty==false

textAlign?: TextAlignType
uiBackground?: UiBackgroundProps

To define a background color or image

uiTransform?: UiTransformProps

Layout component, to position things in the canvas

Methods

  • Parameters

    • value: number

    Returns void