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

string

Symbol expression

fn

string

Name of the control setter function

fnThis

TcHmi.Controls.System.baseTcHmiControl

Reference to the control instance

Return value

Type

Description

void

No return value

createEx 1:

Available from 1.8

Sample - JavaScript

var myControl = TcHmi.Controls.get('TcHmiTextbox_1');
if(myControl){
    TcHmi.Binding.createEx('%i%MyInternalSymbol_1%/i%', 'setText', myControl);
}