OnBeforeAddWidget - cWebWidgetContainer
Called before the functional logic of AddWidget and AppendWidget is executed
Type: Event
Return Data Type: Boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
| ByRef WidgetDef | tWidgetDef | Struct containing the information of the WebWidget to be added |
| ByRef hoWidgetClass | Handle | Handle to the Widget class to create the widget based on, e.g. (RefClass(cMyWidgetClass)) |
Syntax
Function OnBeforeAddWidget ByRef tWidgetDef WidgetDef ByRef Handle hoWidgetClass Returns Boolean
Description
Called before the functional logic of AddWidget and AppendWidget is executed.
Use this to potentially modify the passed struct if needed.
Return Value
Returning False will prevent subsequent logic from being executed