@theoplayer/web-ui
    Preparing search index...

    Class ErrorDisplay

    A screen that shows the details of a fatal player error.

    <theoplayer-error-display>

    PropertyDescription

    --theoplayer-error-icon-color

    The color of the error icon. Defaults to --theoplayer-icon-color.

    --theoplayer-error-icon-width

    The width of the error icon. Defaults to 48px.

    --theoplayer-error-icon-height

    The height of the error icon. Defaults to 48px.

    --theoplayer-error-icon-gap

    The gap between the error icon and the text. Defaults to 10px.

    --theoplayer-error-heading-color

    The text color of the error heading. Defaults to #fff.

    --theoplayer-error-heading-margin

    The margin around the error heading. Defaults to 0 0 10px.

    --theoplayer-error-message-color

    The text color of the error message. Defaults to #fff.

    --theoplayer-error-message-margin

    The margin around the error message. Defaults to 0.

    --theoplayer-error-min-width

    The minimum width of the error display. Defaults to 0.

    --theoplayer-error-max-width

    The maximum width of the error display. Defaults to 80%.

    Hierarchy

    Index

    Other

    error: THEOplayerError | undefined

    The error.

    fullscreen: boolean

    rendering

    shadowRootOptions: ShadowRootInit = ...

    Options used when calling attachShadow. Set this property to customize the options for the shadowRoot; for example, to create a closed shadowRoot: {mode: 'closed'}.

    Note, these options are used in createRenderRoot. If this method is customized, options should be respected if possible.

    • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

      Returns TemplateResult<1>

    styles

    styles: CSSResult[] = ...

    Array of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.

    Note on Content Security Policy:

    Element styles are implemented with <style> tags when the browser doesn't support adopted StyleSheets. To use such <style> tags with the style-src CSP directive, the style-src value must either include 'unsafe-inline' or nonce-<base64-value> with <base64-value> replaced be a server-generated nonce.

    To provide a nonce to use on generated <style> elements, set window.litNonce to a server-generated nonce in your page's HTML, before loading application code:

    <script>
    // Generated and unique per request:
    window.litNonce = 'a1b2c3d4';
    </script>