search

goog.editor.plugins.LinkBubble.Action

Provided By

Constructor for extra actions that can be added to the link bubble.

new Action( spanId, linkId, message, toShowFn, actionFn )

Parameters
spanIdstring

The ID for the span showing the action.

linkIdstring

The ID for the link showing the action.

messagestring

The text for the link showing the action.

toShowFnfunction(string): boolean

Test function to determine whether to show the action for the given URL.

actionFnfunction(string): undefined

Action function to run when the action is clicked. Takes the current target URL as a parameter.

Instance Methods

Instance Properties