outsystems-ui - v3.0.0
    Preparing search index...

    Defines the interface for OutSystemsUI Sidebar Pattern

    interface ISidebar {
        build(): void;
        dispose(): void;
        isOpen?: boolean;
        close(): void;
        open(isOpenedByApi?: boolean): 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;
        clickOutsideToClose(closeOnOutSIdeClick: boolean): void;
        toggleGestures(enableSwipe: boolean): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    isOpen?: boolean
    isBuilt: boolean

    Indicates if the instance of the pattern is built.

    selfElement: HTMLElement

    Pattern HTML element

    uniqueId: string

    Internal Id of the instance of the pattern.

    widgetId: string

    External Id of the instance of the pattern

    • Method signature to open the pattern.

      Parameters

      • OptionalisOpenedByApi: boolean

        True when the open was requested through the API, not by user interaction

      Returns void

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

      Parameters

      • propertyName: string

        Name of the config property to change

      • propertyValue: unknown

        New value of the property

      Returns void

    • Method to toggle the click on outside to close the Sidebar.

      Parameters

      • closeOnOutSIdeClick: boolean

        True to close the sidebar when the user clicks outside it

      Returns void