outsystems-ui - v2.30.0
    Preparing search index...

    Defines the interface for OutSystemsUI Dropdown Pattern

    interface IDropdown {
        build(): void;
        dispose(): void;
        isBuilt: boolean;
        selfElement: HTMLElement;
        uniqueId: string;
        widgetId: string;
        changeProperty(propertyName: string, propertyValue: unknown): void;
        registerCallback(eventName: string, callback: OSGeneric): void;
        equalsToID(id: string): boolean;
        clear(): void;
        close(): void;
        disable(): void;
        enable(): void;
        getSelectedValues(): string;
        open(): void;
        setProviderConfigs(providerConfigs: any): void;
        setProviderEvent(
            eventName: string,
            callback: Generic,
            uniqueId: string,
        ): void;
        unsetProviderEvent(eventId: string): void;
        validation(isValid: boolean, validationMessage: string): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    isBuilt: boolean

    Indicates if the instance of the pattern is built.

    OSFramework.Interface.IPattern

    selfElement: HTMLElement

    Pattern HTML element

    OSFramework.Interface.IPattern

    uniqueId: string

    Internal Id of the instance of the pattern.

    OSFramework.Interface.IPattern

    widgetId: string

    External Id of the instance of the pattern

    OSFramework.Interface.IPattern

    • Method signature to change the properties/configs of the pattern.

      Parameters

      • propertyName: string
      • propertyValue: unknown

      Returns void

      OSFramework.Interface.IPattern

    • Method used to set the extensibility configs based on provider

      Parameters

      • providerConfigs: any

      Returns void

      OSFramework.Patterns.Dropdown.IDropdown

    • Method used to set the extensibility events based on provider

      Parameters

      • eventName: string
      • callback: Generic
      • uniqueId: string

      Returns void

      OSFramework.Patterns.Dropdown.IDropdown

    • Method used to unset the extensibility events that was previously added

      Parameters

      • eventId: string

      Returns void

      OSFramework.Patterns.Dropdown.IDropdown

    • Method used to set the validation status, and also pass the message to show

      Parameters

      • isValid: boolean
      • validationMessage: string

      Returns void

      OSFramework.Patterns.Dropdown.IDropdown