resolveEx
[ Function ]
public static resolveEx(
propertyName: string,
control: TcHmi.Controls.System.baseTcHmiControl
): TcHmi.SymbolExpression | null;
Returns a symbol expression if a binding exists between a symbol and the control attribute or null if no binding exists.
Parameter
Name | Type | Description |
---|---|---|
propertyName | Name of the attribute | |
control | Reference to the control instance |
Return value
Type | Description |
---|---|
The symbol expression as SymbolExpression or null. |
Available from version 1.10 |
Sample - JavaScript
var myControl = TcHmi.Controls.get('TcHmiTextbox_1');
if(myControl){
var symbolExpression = TcHmi.Binding.resolveEx('Text',myControl);
if(symbolExpression){
// Binding exists
console.log(myControl.getId() + '::Text is bound to symbol expression: ' + symbolExpression.toString());
} else {
// Binding exists not
}
}