Reference Source
public class | source

UIRendering

Extends:

../node_modules/devapt-core-common/dist/js/base/loggable.js~Loggable → UIRendering

Constructor Summary

Public Constructor
public

constructor(arg_runtime: object, arg_store: object): nothing

Create a UI rendering instance.

Member Summary

Public Members
public
Private Members
private

_assets_urls_templates: {"script": *, "style": *, "image": *, "html": *}

private
private
private
private

_ui: *

Method Summary

Public Methods
public

create_dom_url_element(arg_dom_element: *, arg_tag: *, arg_id: *, arg_url: *, arg_type: *)

public

get_asset_url(arg_url: *, arg_type: *, arg_credentials: *): *

public

process_assets_urls_templates(arg_assets_urls_templates: *)

public

process_rendering_result_headers(arg_rendering_result_headers: *[])

public

process_rendering_result_scripts_tags(arg_dom_element: *, arg_rendering_result_scripts_tags: *[])

public

process_rendering_result_scripts_urls(arg_dom_element: *, arg_rendering_result_scripts_urls: *[], arg_credentials: *)

public

process_rendering_result_styles_tags(arg_dom_element: *, arg_rendering_result_styles_tags: *[])

public

process_rendering_result_styles_urls(arg_dom_element: *, arg_rendering_result_styles_urls: *[], arg_credentials: *)

Public Constructors

public constructor(arg_runtime: object, arg_store: object): nothing source

Create a UI rendering instance.

API:
    ->constructor(arg_runtime, arg_ui)

    ->process_assets_urls_templates(arg_assets_urls_templates)
    ->process_rendering_result_headers(arg_rendering_result_headers=[], arg_credentials)

    ->get_asset_url(arg_url, arg_type, arg_credentials=undefined)

    ->create_dom_url_element(arg_dom_element, arg_tag, arg_id, arg_url, arg_type)

    ->process_rendering_result_scripts_urls(arg_dom_element, arg_rendering_result_scripts_urls=[], arg_credentials)
    ->process_rendering_result_scripts_tags(arg_dom_element, arg_rendering_result_scripts_tags=[], arg_credentials)
    ->process_rendering_result_styles_urls(arg_dom_element, arg_rendering_result_styles_urls=[], arg_credentials)
    ->process_rendering_result_styles_tags(arg_dom_element, arg_rendering_result_styles_tags=[], arg_credentials)

Params:

NameTypeAttributeDescription
arg_runtime object

client runtime.

arg_store object

UI components state store.

Return:

nothing

Public Members

public is_ui_rendering: boolean source

Private Members

private _assets_urls_templates: {"script": *, "style": *, "image": *, "html": *} source

private _content_element: * source

private _content_id: string source

private _runtime: * source

private _ui: * source

Public Methods

public create_dom_url_element(arg_dom_element: *, arg_tag: *, arg_id: *, arg_url: *, arg_type: *) source

Params:

NameTypeAttributeDescription
arg_dom_element *
arg_tag *
arg_id *
arg_url *
arg_type *

public get_asset_url(arg_url: *, arg_type: *, arg_credentials: *): * source

Params:

NameTypeAttributeDescription
arg_url *
arg_type *
arg_credentials *
  • optional
  • default: undefined

Return:

*

public process_assets_urls_templates(arg_assets_urls_templates: *) source

Params:

NameTypeAttributeDescription
arg_assets_urls_templates *

public process_rendering_result_headers(arg_rendering_result_headers: *[]) source

Params:

NameTypeAttributeDescription
arg_rendering_result_headers *[]
  • optional
  • default: []

public process_rendering_result_scripts_tags(arg_dom_element: *, arg_rendering_result_scripts_tags: *[]) source

Params:

NameTypeAttributeDescription
arg_dom_element *
arg_rendering_result_scripts_tags *[]
  • optional
  • default: []

public process_rendering_result_scripts_urls(arg_dom_element: *, arg_rendering_result_scripts_urls: *[], arg_credentials: *) source

Params:

NameTypeAttributeDescription
arg_dom_element *
arg_rendering_result_scripts_urls *[]
  • optional
  • default: []
arg_credentials *

public process_rendering_result_styles_tags(arg_dom_element: *, arg_rendering_result_styles_tags: *[]) source

Params:

NameTypeAttributeDescription
arg_dom_element *
arg_rendering_result_styles_tags *[]
  • optional
  • default: []

public process_rendering_result_styles_urls(arg_dom_element: *, arg_rendering_result_styles_urls: *[], arg_credentials: *) source

Params:

NameTypeAttributeDescription
arg_dom_element *
arg_rendering_result_styles_urls *[]
  • optional
  • default: []
arg_credentials *