Using data items with widgets

For the tool developer who doesn’t want to deal with creating their own UI controls to interact with their tool’s workflow configuration, we have created a set of widgets which will update data items associated with them for you. There’s a myriad of benefits to using these, including they blend naturally with the look and feel of Alteryx, and are used by the Alteryx team for their own tools, so have been tested and proven to work for the task.

To use these, you must pull in the HTML GUI SDK library as described in the data item section above. You may create your data items, and add them to the manager in the BeforeLoad function just as above, but it’s not required with the widgets. You have the same lifecycle methods described above, such as BeforeLoad, AfterLoad, and Annotation. However, when using the widgets, you do not need to create the data items yourself, attach to the UI controls change events to update the data items, or even set the UI controls initial value from the data items in AfterLoad as you would if you weren’t using the widgets.

If using widgets, do not interact with them through the DOM, as they modify their DOM nodes dynamically on their own.