Constructor for extra actions that can be added to the link bubble.
new Action( spanId, linkId, message, toShowFn, actionFn )
Parameters | spanId | string | | The ID for the span showing the action.
| linkId | string | | The ID for the link showing the action.
| message | string | | The text for the link showing the action.
| toShowFn | function(string): boolean | | Test function to determine whether
to show the action for the given URL.
| actionFn | function(string): undefined | | Action function to run when the
action is clicked. Takes the current target URL as a parameter.
|
|
---|