Ultra Light Client Guide and Reference

Adding support for enablers

For the final polish, you can add enablers to your sample.

A common behavior in GUI applications is to enable or disable a button based on the state of another widget. ULC parts support this with an enabler attribute. To enable the Add button only when the entry field is not empty, add an attribute-to-attribute connection between the enabler attribute of the Add button part and the self attribute of the Entry Field part.

Similarly, to enable the Remove button only when an item has been selected from the list, add an attribute-to-attribute connection between the enabler attribute of the Remove button part and the self attribute of the List part.

Now test your application again to verify that the buttons are enabled and disabled properly.

Congratulations! Your To-Do List application is finished. Before versioning your application, read Packaging ULC-based applications in XD.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]