Adds a button to toggle through the available designs
- Since:
-
- 0.5.3 (2010)
- Source:
Example

<designtoggle> <layout colspan="6"/> <label>Change Design</label> </designtoggle>
Requires
Methods
-
<inner> action(path, actor, isCanceled)
-
Action performed when the widget got clicked
Parameters:
Name Type Description pathString Internal path of the widget
actorElement DOMElement
isCanceledBoolean If true the action does nothing
- Source:
-
<inner> create(element, path, flavour, type)
-
Creates the widget HTML code
Parameters:
Name Type Description elementElement DOM-Element
pathString internal path of the widget
flavourString Flavour of the widget
typeString Page type (2d, 3d, ...)
- Source:
Returns:
HTML code
- Type
- String
-
<inner> getLocation()
-
Wrapper for getting the
window.location.hrefvalue- Source:
Returns:
URI of the page the browser is currently showing
- Type
- String
-
<inner> setLocation(loc)
-
Changes
window.location.hrefto trigger a redirectParameters:
Name Type Description locString URI of the location the browser should be redirected to
- Source: