The goog.tweak.ButtonAction Class

goog.tweak.ButtonAction
> goog.tweak.BaseEntry

goog.tweak.ButtonAction(id, description, callback)

A registry action (a button).

id {string}
The ID for the setting.
description {string}
A description of what the setting does.
callback {!Function}
Function to call when the button is clicked.

.addCallback(callback)

Inherited from goog.tweak.BaseEntry .

Adds a callback that should be called when the setting has changed (or when an action has been clicked).

callback {!Function}
The callback to add.

.fireCallbacks()

Inherited from goog.tweak.BaseEntry .

Calls all registered callbacks.

.getId()

Inherited from goog.tweak.BaseEntry .

returns {string}
Returns the entry's ID.

.isRestartRequired()

Inherited from goog.tweak.BaseEntry .

Returns whether a restart is required for changes to the setting to take effect.

returns {boolean}
The value.

.removeCallback(callback)

Inherited from goog.tweak.BaseEntry .

Removes a callback that was added by addCallback.

callback {!Function}
The callback to add.

.setRestartRequired(value)

Inherited from goog.tweak.BaseEntry .

Sets whether a restart is required for changes to the setting to take effect.

value {boolean}
The new value.