Class wso2vis.ctrls.TrafficLight
Represents a traffic light widget which creates a graphical traffic light in WSO2Vis.
Defined in: TrafficLight.js.
Constructor Attributes | Constructor Name and Description |
---|---|
wso2vis.ctrls.TrafficLight(canvas)
Constructs a new TrafficLight.
|
Method Attributes | Method Name and Description |
---|---|
load(p)
|
|
off(light)
|
|
on(light)
|
|
property(name)
|
|
toggle(light)
|
|
vertical()
|
Class Detail
wso2vis.ctrls.TrafficLight(canvas)
Constructs a new TrafficLight.
- Parameters:
- {canvas} canvas
- the name of the HTML element (ex: div) where the graphical traffic light should be drawn.
Method Detail
horizontal()
load(p)
- Parameters:
- p
off(light)
- Parameters:
- light
on(light)
- Parameters:
- light
property(name)
- Parameters:
- name
toggle(light)
- Parameters:
- light
vertical()