rad-gui
    Preparing search index...

    Controller for values with a select dropdown interface Provides a dropdown menu for selecting from predefined options

    OptionControl

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a new option controller

      Parameters

      • parent: any

        The parent GUI instance

      • object: any

        Object containing the property to control

      • property: any

        Name of the property to control

      • options: any

        Object with key/value pairs or array of values for the options

      Returns OptionControl

    Properties

    _changed: boolean = false

    Whether the value has changed since the last finishChange event

    _disabled: boolean = false

    Whether the controller is disabled

    _hidden: boolean = false

    Whether the controller is hidden

    _listenCallbackID: any

    ID of the animation frame when listening for changes

    _listening: boolean = false

    Whether the controller is actively listening for external changes

    _listenPrevValue: any

    Previous value when listening for changes

    _name: any

    Name of the controller (typically matches the property name)

    _onChange: any

    Callback for when the value changes

    _onFinishChange: any

    Callback for when value changes are completed

    $display: HTMLDivElement

    Display element showing the current selection

    $elForDisable: any

    DOM element that will be disabled when controller is disabled

    $name: HTMLDivElement

    DOM element for displaying the property name

    $select: HTMLSelectElement

    The select element for the dropdown

    $widget: HTMLDivElement

    DOM element containing the control widget

    domElement: HTMLElement

    Main DOM element for this controller

    initialValue: any

    Initial value of the controlled property

    object: any

    Object containing the property to control

    parent: any

    Parent GUI instance

    property: any

    Property name being controlled

    nextNameID: any

    Used for generating unique IDs

    Methods