Module: modalHomeWidget_js

Methods

(inner) addHomeWidget() → {void}

Opens the add to homescreen modal for widgets
Source:
Returns:
Type
void

(inner) editHomeWidget(pos, replace) → {void}

Shows the edit home widget dialog
Parameters:
Name Type Description
pos number home icon position
replace boolean true = replace existing home widget, false = duplicate home widget
Source:
Returns:
Type
void

(inner) initModalHomeWidget() → {void}

Initializes the modalHomeWidget
Source:
Returns:
Type
void

(inner) saveHomeWidget(target) → {void}

Saves the home widget
Parameters:
Name Type Description
target Element triggering element
Source:
Returns:
Type
void

(inner) selectWidgetScriptChange(valuesopt) → {void}

Calls showWidgetScriptArgs for the selected script
Parameters:
Name Type Attributes Description
values object <optional>
array of values for the script arguments
Source:
Returns:
Type
void

(inner) showWidgetScriptArgs(option, values) → {void}

Shows the list of arguments and values for the selected script
Parameters:
Name Type Description
option HTMLElement selected option from script select
values object Key/value pairs for values for the script arguments
Source:
Returns:
Type
void