Creating Widgets

Widgets may be created only in Iotellect Client. Other Iotellect Server User Interfaces have no analogs of the Widget editor.

New widgets are created using the Create New Widget action of the Widgets context. This is a Drag and Drop action that accepts any context type. The action assumes that one context (the "accepted context") is selected before it starts. This accepted context has one simple use during widget creation: its type will be used as the type of context for which the new widget will be available. The Launch Widget action will be installed in all contexts of this type once the widget is created.

Example: If a User context is dragged and dropped on the Widgets context (i.e. selected as an "accepted" context for a Create New Widget action), the newly created widget will be suitable for use with every User context in Iotellect Server. Each User context will have a new Launch Widget action with a description matching that of the widget. See Launch Widget Action for details.

Once the context type is selected, a Widget editor starts which is used to build a widget by editing its template in a visual editor. You will now create the layout for the new widget, by adding some components to it and configuring their properties. This is also a good time to define some bindings, i.e. relations between widget components and the different variables or functions of Iotellect Server contexts.

You can stop editing the widget template in Widget editor by clicking on Done or Cancel in the Widget editor toolbar. If Cancel is clicked, action is terminated and no widget is created. If Done, the user is prompted to specify properties for the new widget. Most properties are already set by this point, but you still have to provide a name and a description for the new widget.

After that, Iotellect Server actually creates Widget context representing new widget. Then it finds all contexts of the same type as type of "accepted" context for this action and installs a Launch Widget action to them.

Widget creation is now finished. You can now launch the widget action from the contexts for which it was installed.

Was this page helpful?