HomeWeb Components API Reference - v0.7.1
    Preparing search index...

    Class ScrollbarComponentElement

    The ScrollbarComponentElement interface provides properties and methods for manipulating <pc-scrollbar> elements. The ScrollbarComponentElement interface also inherits the properties and methods of the HTMLElement interface.

    Hierarchy (View Summary)

    Index

    Accessors

    • get component(): ScrollbarComponent | null

      Gets the underlying PlayCanvas scrollbar component.

      Returns ScrollbarComponent | null

      The scrollbar component.

    • get enabled(): boolean

      Gets the enabled state of the component.

      Returns boolean

      The enabled state of the component.

    • set enabled(value: boolean): void

      Sets the enabled state of the component.

      Parameters

      • value: boolean

        The enabled state of the component.

      Returns void

    • get handle(): string

      Gets the reference to the <pc-entity> used as the scrollbar handle.

      Returns string

      The handle entity reference.

    • set handle(value: string): void

      Sets the reference (CSS selector, element id or entity name) to the <pc-entity> used as the scrollbar handle.

      Parameters

      • value: string

        The handle entity reference.

      Returns void

    Methods