import RenderingBuilderAssets from 'devapt-core-common/js/rendering/rendering_builder_assets.js'
RenderingBuilderAssets
Extends:
Direct Subclass:
Rendering wrapper class.
Constructor Summary
Public Constructor | ||
public |
constructor(arg_runtime: RuntimeBase, arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string, arg_application: TopologyDefineApplication): nothing Create a rendering wrapper class. |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Private Members | ||
private |
_application: * |
|
private |
_runtime: * |
Method Summary
Public Methods | ||
public |
get_assets_html_url(arg_url: string): string Get an url to server the given static html asset. |
|
public |
get_assets_image_url(arg_url: string): string Get an url to server the given image asset. |
|
public |
get_assets_script_url(arg_url: string): string Get an url to server the given script asset. |
|
public |
get_assets_style_url(arg_url: string): string Get an url to server the given style asset. |
|
public |
get_assets_url(arg_consumer: object, arg_svc_name: string, arg_url: string): string Get an url to server the given image asset. |
|
public |
get_topology_defined_application(arg_credentials: Credentials): TopologyDefineApplication Get TopologyDefineApplication instance from registered application or from credentials. |
|
public |
get_url_with_credentials(arg_url: string): string Get an url to server the given image asset. |
|
public |
set_assets_services_names(arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string): nothing Set assets services names. |
Inherited Summary
From class Loggable | ||
public |
Log context. |
|
public |
Class type flag. |
|
public |
Trace is enabled for this flag. |
|
private |
Logger manager instance (default undefined) |
|
public |
Trace DEBUG formatted message. |
|
public |
disable_trace(): nothing Disable traces. |
|
public |
enable_trace(): nothing Enable traces. |
|
public |
enter_group(arg_group: string): nothing Trace INFO message on "enter trace group". |
|
public |
Trace ERROR formatted message. |
|
public |
Define get class name method for non Instance classes. |
|
public |
Get instance context. |
|
public |
Get logger manager. |
|
public |
Define get instance name method for non Instance classes. |
|
public |
Get trace flag. |
|
public |
Trace INFO formatted message. |
|
public |
leave_group(arg_group: string): nothing Trace INFO message on "leave trace group". |
|
public |
separate_level_1(): nothing Trace INFO trace level 1 separator. |
|
public |
separate_level_2(): nothing Trace INFO trace level 2 separator. |
|
public |
separate_level_3(): nothing Trace INFO trace level 3 separator. |
|
public |
Set trace flag. |
|
public |
should_trace(arg_traces_cfg: object): boolean Calculate should trace flag. |
|
public |
should_trace_class(arg_traces_cfg: object): boolean Calculate should trace flag for classes. |
|
public |
should_trace_collection_item(arg_traces_cfg: object, arg_collection_name: string, arg_this_item_accessor: string): boolean Calculate should trace flag for given collection of names or patterns. |
|
public |
should_trace_module(arg_traces_cfg: object): boolean Calculate should trace flag for modules. |
|
public |
should_trace_name(arg_traces_cfg: object): boolean Calculate should trace flag for instances names. |
|
public |
Toggle trace flag. |
|
public |
update_trace_enabled(): nothing Update trace enabled flag. |
|
public |
Trace WARN formatted message. |
Public Constructors
public constructor(arg_runtime: RuntimeBase, arg_assets_styles: string, arg_assets_scripts: string, arg_assets_img: string, arg_assets_html: string, arg_application: TopologyDefineApplication): nothing source
Create a rendering wrapper class.
API: ->render_content(arg_title, arg_view, arg_menubar, arg_credentials):string - generate page HTML string.
Override:
Loggable#constructorParams:
Name | Type | Attribute | Description |
arg_runtime | RuntimeBase | runtime instance. |
|
arg_assets_styles | string | application service name to provide style assets. |
|
arg_assets_scripts | string | application service name to provide script assets. |
|
arg_assets_img | string | application service name to provide image assets. |
|
arg_assets_html | string | application service name to provide html assets. |
|
arg_application | TopologyDefineApplication | application. |
Return:
nothing |
Public Members
public assets_html_service_consumer: * source
public assets_html_service_name: * source
public assets_images_service_consumer: * source
public assets_images_service_name: * source
public assets_scripts_service_consumer: * source
public assets_scripts_service_name: * source
public assets_styles_service_consumer: * source
public assets_styles_service_name: * source
Private Members
private _application: * source
private _runtime: * source
Public Methods
public get_assets_html_url(arg_url: string): string source
Get an url to server the given static html asset.
Params:
Name | Type | Attribute | Description |
arg_url | string | html asset relative url. |
public get_assets_image_url(arg_url: string): string source
Get an url to server the given image asset.
Params:
Name | Type | Attribute | Description |
arg_url | string | image asset relative url. |
public get_assets_script_url(arg_url: string): string source
Get an url to server the given script asset.
Params:
Name | Type | Attribute | Description |
arg_url | string | script asset relative url. |
public get_assets_style_url(arg_url: string): string source
Get an url to server the given style asset.
Params:
Name | Type | Attribute | Description |
arg_url | string | script asset relative url. |
public get_assets_url(arg_consumer: object, arg_svc_name: string, arg_url: string): string source
Get an url to server the given image asset.
public get_topology_defined_application(arg_credentials: Credentials): TopologyDefineApplication source
Get TopologyDefineApplication instance from registered application or from credentials.
Params:
Name | Type | Attribute | Description |
arg_credentials | Credentials | Credentials instance (optional). |
public get_url_with_credentials(arg_url: string): string source
Get an url to server the given image asset.
Params:
Name | Type | Attribute | Description |
arg_url | string | image asset relative url. |