registerEx
[ Function ]
function registerEx<C extends TcHmi.Controls.System.baseTcHmiControl>(
controlTypeName: string,
namespace: string,
constructor: TcHmi.Controls.baseTcHmiControlConstructor<C>
): void;
Registers a control class in the system.
Before using a control, it must be made known to the system using this function.
Parameter
Name | Type | Description |
|---|---|---|
controlTypeName | Name of the class. | |
namespace | Namespace of the class | |
constructor | TcHmi.Controls.baseTcHmiControlConstructor<C> | Constructor of the control. |
Return value
Type | Description |
|---|---|
void | No return value. |
![]() | Available from version 1.12 |
Sample - JavaScript
TcHmi.Controls.registerEx('TcHmiMyControl', 'TcHmi.Controls.Custom', TcHmi.Controls.Custom.TcHmiMyControl);