Class: Button

Cadcorp.UI.Button

new Button(config)

An enhanced button that notifies a listener when it's clicked.
Parameters:
Name Type Description
config Object Configuration for this object. The config supplied directly extends the control

Extends

Members

buttonOptions

Properties:
Name Type Description
buttonOptions Object Passed to the jQuery UI button constructor
Inherited From:

clickHandler

Properties:
Name Type Description
clickHandler function The function to call when this button is clicked

id

Properties:
Name Type Description
id string The id for this control
Inherited From:

map

Properties:
Name Type Attributes Description
map Object <nullable>
The map for this control
Inherited From:

Methods

buttonClickedHandler(eventArgs)

Called when the button is clicked. Calls the supplied clickHandler
Parameters:
Name Type Description
eventArgs Object The event arguments
Overrides: