Skip to content

Files

Latest commit

fbec705 · Sep 13, 2020

History

History
This branch is 15 commits behind inductiveautomation/ignition-sdk-examples:master.

expression-function

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 13, 2020
Oct 2, 2018
Oct 2, 2018
Oct 2, 2018
Oct 2, 2018
Oct 2, 2018
Sep 13, 2020
Oct 2, 2018

Expression Example

Description

This module provides an example expression that can be used in a Gateway or Designer/Client. The actual expression code is located in the MultiplyFunction class. The GatewayHook, DesignerHook and ClientHook classes all reference this expression class in their configureFunctionFactory() methods.

Implementation

To see the expression in action, start a Designer and add a label to a window. Click on the label's Text 'Bind Property' button. In the Property Binding window, select the Expression option and add exampleMultiply(4, 6) to the window. Click OK. The label will now use the custom expression as its text.