interface ContentDialogOptions {
    htmlContent: string | HTMLElement;
    onclose?: ((shadowRoot: ShadowRoot) => any);
    onopened?: ((shadowRoot: ShadowRoot, close: (() => void)) => any);
    styles?: string;
    title?: string;
}

Properties

htmlContent: string | HTMLElement

HTML content of the dialog.

onclose?: ((shadowRoot: ShadowRoot) => any)

Called when the dialog closes.

Type declaration

    • (shadowRoot): any
    • Parameters

      • shadowRoot: ShadowRoot

        The shadow root that contains the HTML content and styles.

      Returns any

onopened?: ((shadowRoot: ShadowRoot, close: (() => void)) => any)

Called when the dialog is opened.

Type declaration

    • (shadowRoot, close): any
    • Parameters

      • shadowRoot: ShadowRoot

        The shadow root that contains the HTML content and styles.

      • close: (() => void)

        This function call closes the dialog.

          • (): void
          • Returns void

      Returns any

styles?: string

CSS styles for the dialog content.

title?: string

Title of the dialog.