Share via


Undo/Redo (fx.editablecontrol.js) Common Control Service

 

Applies To: Windows Azure Pack

fx.editablecontrol is a base control that allows child controls to show when they have been changed from their initial values, and provides a function to reset them back to their initial value. Controls that inherit from this base control will have this functionality.

Windows Azure Pack fx.EditableControl

Widgets

$("Selector").editablecontrol()

Properties

Name

Type

Description

fx.editablecontrol.options.change

Function

Callback when the value changes.

fx.editablecontrol.options.edit

Function

Callback when the value goes from its original state to a different state.

fx.editablecontrol.options.noedit

Function

Callback when the value goes back to the original state.

fx.editablecontrol.options.trackedit

Function

racks the changes and fires event.

Methods

Name

Description

Returns

Parameters

fx.editablecontrol.destroy

Destroys the widget.

Nothing

None

fx.editablecontrol.revert

Reverts the current state and revert it back to the original.

Nothing

None

fx.editablecontrol.setOriginalValue

Resets the original value of the control to the current one. Subsequent revert will go back to this value.

Nothing

None

fx.editablecontrol.value

Gets the current value.

Object

See Also

Windows Azure Pack Extension Common Control Services
Windows Azure Pack Management Portal User Interface Extensions