All independent UI elements are derived from the abstract base class IWDUIElement, which provides the following properties and the corresponding methods.
● enabled
This property specifies whether or not an event can be triggered by a user interaction.
The enabled property has no effect on the UI element children you inserted into the UI element container. If, for example, you set the enabled property to false in the group UI element, an input field inserted in it is not automatically deactivated. If the UI element children in this group UI element are also to be deactivated, you must set the relevant property for each UI element separately.
● tooltip
This property describes a note for the UI element that is displayed when the user places the cursor on the UI element.
● visible
This property specifies the visibility of the UI element. The default value of this property is set to visible.
○ none. The UI element is not visible on the screen and takes up no space.
○ visible. The UI element is displayed on the screen.
○ blank. The UI element is not visible on the screen but takes up space
This value is deprecated and should not be used anymore for security reasons. Use none instead.
Name |
Interface |
Type |
Initial Value |
Bindable |
Value Required |
enabled |
IWDUIElement |
boolean |
true |
bindable |
No |
tooltip |
IWDUIElement |
String (TranslatableText) |
|
bindable |
No |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |
No |
All UI elements that are available within another UI element are derived only from IWDViewElement. This interface is used to uniquely identify an element and provide the appropriate view.
When creating an element, an ID is assigned to the element that identifies the element in its view.
Method Name |
Return Value |
Parameter |
Short Description |
getID |
String |
|
Returns the unique name (ID) for each element. |
getView |
IWDView |
|
Returns its view. |