LoadWidgetControl
LoadWidgetControl reads a widget file and loads it into a CyberStore page.
Configurable properties
| Property | Default | Valid values or format | Effect |
|---|---|---|---|
FileLocationString | Empty string ("") | Sets the widget file location. | |
OptionsVariableNameString | "widgetOptions" | Sets the widget options variable name. | |
OptionsString | Empty string ("") | Supplies widget options. | |
DeveloperOptionsString | Empty string ("") | Supplies developer-mode option overrides. | |
EnableDeveloperModeBoolean | Not specified | true, false | Controls developer-mode overrides. |
DisableScriptMinificationBoolean | Not specified | true, false | Controls widget script minification. |
OptionsIDNot specified | Not specified | Identifies the rendered widget options object. |
SitePages.config example
The following example loads LoadWidgetControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: FileLocation, Options, DeveloperOptions, EnableDeveloperMode, DisableScriptMinification, OptionsID.
<Control src="LoadWidgetControl.ascx"
OptionsVariableName="widgetOptions" />
Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.
Inherited properties
LoadWidgetControl inherits shared conditions from CyberStoreBaseControl.