Root Panel

Top  Previous  Next

Root panel is a special type of Panel container that has several additional properties and events.

Custom Properties

This section describes properties of the root panel of the widget.

Ignore Binding Errors

If this option is enabled, any binding errors that occur during widget execution are not shown to the user in error dialog. Instead, they are just written to the log file or console (see logging topic for more information). If this option is disabled (this is a default), bindings errors are both logged and shown to the user.

Property name: ignoreBindingErrors

Property type: Boolean

All Bindings

This property contains a list of all bindings available in the widget template. See the bindings article for more information about bindings and their parameters.

Property name: allBindings

Property type: Data Table

Scripts

This property contains the table of widget scripts. There are two columns: Name and Code.

Name is the script name. It it used to refer to this script from widget bindings.

Code contains text of a class implementing WidgetScript interface, i.e. script code.

note_further-wt

When a new script is added to the scripts table, a new binding used to launch it is automatically added to the All Bindings list. However, initial properties of this binding do not define any script launch conditions. It's necessary to modify these properties to make the script start on widget startup, some event or just periodically.

Property name: scripts

Property type: Data Table

Common Events

Hidden, Shown, Moved, Resized, Mouse Clicked, Mouse Pressed, Mouse Released, Mouse Entered, Mouse Exited, Mouse Moved, Mouse Wheel Moved, Key Typed, Key Pressed, Key Released, Focus Gained, Focus Lost

Custom Events

Submit

This event may be triggered by a button having a Submit action in its actions list.

Event name: submit

Reset

This event may be triggered by a button having a Reset action in its actions list.

Event name: reset

Close

This event may be triggered by a button having a Close action in its actions list.

Event name: close