Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.06 KB

component.md

File metadata and controls

61 lines (47 loc) · 1.06 KB

component

The generic class that all components inherit from

set_target

Sets the target of the component

Syntax

public set_target(target: string): void;

Parameters

target
Type: string
The target id of the component it needs to append to

set_id

Sets the target of the component

Syntax

public set_id(id: string): void;

Parameters

id
Type: string
Overrides the default generated id

set_name

Sets generic name of a component. Calling this function will force a re render

Syntax

public set_name(name: string): void;

Parameters

name
Type: string
The new name this component needs to have

Remarks

Some function use this name attirbute as a value instead of a name

get_id

Returns the id of the component

Syntax

public get_id(): string;

Return value

Type: string
The id of the component