Interface IPanelResult

Hierarchy

Properties

addStyle: ((css: string) => void)

Type declaration

    • (css: string): void
    • Parameters

      • css: string

      Returns void

append: ((...args: VChild[]) => void)

Type declaration

    • (...args: VChild[]): void
    • Append elements to the panel body, shorthand for panel.body.append(...).

      Parameters

      • Rest ...args: VChild[]

      Returns void

body: HTMLElement

The container of contents. It is recommended to style your panel box here.

clear: (() => void)

Type declaration

    • (): void
    • Empty the panel body.

      Returns void

dispose: (() => void)

Type declaration

    • (): void
    • Returns void

hide: (() => void)

Type declaration

    • (): void
    • Returns void

host: HTMLElement
id: string
root: HTMLElement | ShadowRoot
setContent: ((...args: VChild[]) => void)

Type declaration

    • (...args: VChild[]): void
    • Replace the content of panel body by clearing it first and then append.

      Parameters

      • Rest ...args: VChild[]

      Returns void

setMovable: ((toggle: boolean, options?: Partial<MovableOptions>) => void)

Type declaration

    • (toggle: boolean, options?: Partial<MovableOptions>): void
    • Whether this panel can be moved by mouse dragging.

      Parameters

      Returns void

shadow: boolean
show: (() => void)

Type declaration

    • (): void
    • Returns void

tag: string
wrapper: HTMLElement

The wrapper element that should be positioned. It should be as simple as possible and let the body to style itself.

Generated using TypeDoc