dojox/drawing/ui/Button (version 1.10)

Summary

Creates a clickable button in "UI" mode of the drawing.

Creates a 4-state button: normal, hover, active, selected. Optionally may include button text or an icon.

Usage

var foo = new Button(options);
dojox/drawing/ui/Button
Parameter Type Description
options undefined

Property Summary

Method Summary

Event Summary

Properties

callback
enabled
hitched
scope
selected
toolType
type

Methods

_change(sty)
Parameter Type Description
sty Object
attr(options)
Parameter Type Description
options undefined
deselect()
disable()
enable()
makeOptions(d,s)
Parameter Type Description
d Object
s Float
Returns:object
select()

Events

onClick(button)

Stub to connect. Event is 'this' Alternatively can pass in a scope and a callback on creation.

Parameter Type Description
button Object
onDown()
onOut()
onOver()
onUp()
Error in the documentation? Can’t find what you are looking for? Let us know!