createEx
[ Function ]
public static createEx(
expression: string,
fn: string,
fnThis: TcHmi.Controls.System.baseTcHmiControl
): void;
Creates a binding between a symbol and a control attribute using the attribute setter function.
Parameter
Name | Type | Description |
---|---|---|
expression | Symbol expression | |
fn | Name of the control setter function | |
fnThis | Reference to the control instance |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Sample - JavaScript
var myControl = TcHmi.Controls.get('TcHmiTextbox_1');
if(myControl){
TcHmi.Binding.createEx('%i%MyInternalSymbol_1%/i%', 'setText', myControl);
}