Module: structure/pure/DesignToggle

Adds a button to toggle through the available designs

Since:
  • 0.5.3 (2010)
Author:
  • Christian Mayer
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
path String

Internal path of the widget

actor Element

DOMElement

isCanceled Boolean

If true the action does nothing

Source:

<inner> create(element, path, flavour, type)

Creates the widget HTML code

Parameters:
Name Type Description
element Element

DOM-Element

path String

internal path of the widget

flavour String

Flavour of the widget

type String

Page type (2d, 3d, ...)

Source:
Returns:

HTML code

Type
String

<inner> getLocation()

Wrapper for getting the window.location.href value

Source:
Returns:

URI of the page the browser is currently showing

Type
String

<inner> setLocation(loc)

Changes window.location.href to trigger a redirect

Parameters:
Name Type Description
loc String

URI of the location the browser should be redirected to

Source: