Rendering
Constructor Summary
Public Constructor | ||
public |
constructor(arg_component: Component, arg_dom_id: string): nothing Creates an instance of Rendering. |
Member Summary
Public Members | ||
public |
|
Private Members | ||
private |
_component: * |
|
private |
_dom_element: * |
|
private |
_dom_id: * |
|
private |
_dom_vnode: * |
|
private |
|
Method Summary
Public Methods | ||
public |
get_dom_element(): Element Get DOM element. |
|
public |
get_dom_id(): string Get DOM id. |
|
public |
get_dom_vnode(): VNode Get DOM Virtual Node. |
|
public |
has_child_element(arg_parent_element: *, arg_child_element: *): boolean |
|
public |
Test DOM Element instance. |
|
public |
Test DOM Virtual Node. |
|
public |
on_dom_event(arg_dom_event: *, arg_dom_selector: *, arg_handler: *, arg_data: *, arg_debug: boolean): boolean Mount dom event handler. |
|
public |
process_rendering_vnode(arg_vnode: VNode): Promise Process rendered VNode: Create or update DOM element. |
|
public |
Render component VNode. |
|
public |
save_rendering(): nothing Save rendering virtul node. |
|
public |
set_dom_element(arg_element: Element): nothing Set DOM element. |
|
public |
set_dom_vnode(arg_vnode: VNode): nothing Set DOM Virtual Node. |
Public Constructors
Public Members
Private Members
private _component: * source
private _dom_element: * source
private _dom_id: * source
private _dom_vnode: * source
private _event_delegator: * source
Public Methods
public has_child_element(arg_parent_element: *, arg_child_element: *): boolean source
Params:
Name | Type | Attribute | Description |
arg_parent_element | * | ||
arg_child_element | * |
public on_dom_event(arg_dom_event: *, arg_dom_selector: *, arg_handler: *, arg_data: *, arg_debug: boolean): boolean source
Mount dom event handler.
@{string} arg_dom_event - dom event name. @{string} arg_dom_selector - dom selector string ('tag_name.class1.class2'). @{function} arg_handler - handler function f(component, event name, selection, event, target). @{any} arg_data - handler datas, default undefined (optional). @{boolean} arg_debug - trace flag, default true (optional).
Params:
Name | Type | Attribute | Description |
arg_dom_event | * | ||
arg_dom_selector | * | ||
arg_handler | * | ||
arg_data | * |
|
|
arg_debug | boolean |
|
public process_rendering_vnode(arg_vnode: VNode): Promise source
Process rendered VNode: Create or update DOM element.
Params:
Name | Type | Attribute | Description |
arg_vnode | VNode | rendered virtual node. |
public save_rendering(): nothing source
Save rendering virtul node. Update component VNode with current component HTML.
Return:
nothing |
public set_dom_element(arg_element: Element): nothing source
Set DOM element.
Params:
Name | Type | Attribute | Description |
arg_element | Element | element instance. |
Return:
nothing |
public set_dom_vnode(arg_vnode: VNode): nothing source
Set DOM Virtual Node.
Params:
Name | Type | Attribute | Description |
arg_vnode | VNode | VNode instance. |
Return:
nothing |