Server layout component.

Type Parameters

Hierarchy

  • Component<P>
    • Layout

Constructors

  • Type Parameters

    Parameters

    • props: P

    Returns Layout<P>

  • Type Parameters

    Parameters

    • props: P
    • context: any

    Returns Layout<P>

Methods

  • Creates path with version parameter.

    Parameters

    • path: string

      Path of the loaded link.

    • version: string

      Version of the app.

    Returns string

  • Gets the text from the dictionary.

    Parameters

    • key: string

      Key of the text in the dictionary.

    Returns string

  • Gets the text from the dictionary.

    Parameters

    • key: string

      Key of the text in the dictionary.

    • Rest...args: any[]

      Arguments for text format.

    Returns string

  • Renders <body> tag with with container and bundle data.

    Returns Element

  • Renders the wrappers for the components in the HTML body.

    Returns Element

  • Renders container with content div. In the content div are rendered client pages.

    Returns Element

  • Renders <head> tag with charset, metas, title, scripts and styles.

    Returns Element

  • Renders the loader before the content data are rendered.

    Returns Element

  • Renders the meta tags. If it's used in inherited Layout super.renderMeta() should be called.

    Returns Element