TableTree
Constructor Summary
Public Constructor | ||
public |
constructor(arg_runtime: object, arg_state: object, arg_log_context: string): nothing Creates an instance of Component. |
Method Summary
Public Methods | ||
public |
append_row(arg_key: *, arg_content: *, arg_depth: *, arg_expanded: *) Append a table row |
|
public |
do_refresh(): nothing On bindings refresh. |
|
public |
find_children(arg_tr: *): * |
|
public |
init(): nothing Init view. |
|
public |
render_expandable_node(arg_label: *, arg_depth: *, arg_expanded: *) |
|
public |
render_node(arg_value: *, arg_depth: *, arg_label: *, arg_expanded: *) |
|
public |
render_safe_string(arg_value: *): * |
|
public |
ui_items_append(arg_items_array: array): nothing Append rows to the container. |
|
public |
ui_items_clear(): nothing Erase container items. |
|
public |
ui_items_get_count(): nothing Get container items count. |
|
public |
ui_items_prepend(arg_items_array: array): nothing Prepend a row. |
|
public |
ui_items_remove_at_index(arg_index: number): nothing Remove a row at given position. |
|
public |
ui_items_remove_first(): nothing Remove a row at first position. |
|
public |
ui_items_remove_last(arg_count: integer): nothing Remove a row at last position. |
|
public |
update_tree(arg_tree: object): nothing Update tree. |
Inherited Summary
From class BoundDom | ||
public |
|
|
public |
|
|
private |
_bindings: {} |
|
private |
|
|
public |
init_bindings(): nothing Init bindings. |
|
public |
Load and apply a component configuration. |
|
public |
unload(): nothing Unload a component configuration. |
From class StatedDom | ||
public |
|
|
private |
|
|
private |
_dom_element: * |
|
private |
|
|
public |
Clear component to initial values. |
|
public |
dispatch_update_state_action(arg_new_state: Immutable.Map): nothing Dispatch update state action. |
|
public |
dispatch_update_state_value_action(arg_path: array | string, arg_value: any): nothing Dispatch update state action. |
|
public |
get_children_component(): array Get view children components. |
|
public |
get_named_stream(arg_stream_name: string): Stream | undefined Get a named stream. |
|
public |
register_and_render_inside_from_json(arg_options: object): nothing Render a component inside this element from a json description. |
|
public |
register_from_json(arg_options: object): nothing Register a component description from a json content. |
|
public |
render_inside_from_json(arg_name: string, arg_json_desc: object): nothing Render a component inside this element from a json description. |
|
public |
Update view with current state. |
|
public |
Update view with current state. |
|
private |
_update(): * |
From class Component | ||
public |
|
|
public |
Get component content value object. |
|
public |
Get component size. |
|
public |
Get component content value string. |
|
public |
resize(arg_width: any, arg_height: any): nothing Resize component. |
|
public |
set_object_value(arg_value: object): nothing Set component content value object |
|
public |
set_text_value(arg_value: string): nothing Set component content value string. |
|
public |
Update component size with its content. |
Public Constructors
public constructor(arg_runtime: object, arg_state: object, arg_log_context: string): nothing source
Creates an instance of Component.
Override:
Component#constructorReturn:
nothing |
Public Methods
public append_row(arg_key: *, arg_content: *, arg_depth: *, arg_expanded: *) source
Append a table row
Params:
Name | Type | Attribute | Description |
arg_key | * | ||
arg_content | * | ||
arg_depth | * | ||
arg_expanded | * |
public render_expandable_node(arg_label: *, arg_depth: *, arg_expanded: *) source
Params:
Name | Type | Attribute | Description |
arg_label | * | ||
arg_depth | * | ||
arg_expanded | * |
public render_node(arg_value: *, arg_depth: *, arg_label: *, arg_expanded: *) source
Params:
Name | Type | Attribute | Description |
arg_value | * | ||
arg_depth | * | ||
arg_label | * | ||
arg_expanded | * |
public render_safe_string(arg_value: *): * source
Params:
Name | Type | Attribute | Description |
arg_value | * |
Return:
* |
public ui_items_append(arg_items_array: array): nothing source
Append rows to the container.
Params:
Name | Type | Attribute | Description |
arg_items_array | array | items array. |
Return:
nothing |
public ui_items_prepend(arg_items_array: array): nothing source
Prepend a row.
Params:
Name | Type | Attribute | Description |
arg_items_array | array | rows array. |
Return:
nothing |
public ui_items_remove_at_index(arg_index: number): nothing source
Remove a row at given position.
Params:
Name | Type | Attribute | Description |
arg_index | number | row index. |
Return:
nothing |
public ui_items_remove_last(arg_count: integer): nothing source
Remove a row at last position.
Params:
Name | Type | Attribute | Description |
arg_count | integer | items count to remove. |
Return:
nothing |