Class: OpenAction

OpenAction

new OpenAction(urlChooser)

Open action.
Parameters:
Name Type Description
urlChooser sync.api.UrlChooser the urlChooser the open action will use.
Source:

Methods

actionPerformed()

The actual action execution.
Source:

getActionId() → {string}

Get the action id.
Source:
Returns:
the action id or null if none was provided.
Type
string

getDescription()

Source:

getDisplayName()

Source:

getLargeIcon()

Source:

getSmallIcon()

Source:

isEnabled()

Source:

openFile(fileUrl)

Opens a new file. (Replaces the old url param if there is one)
Parameters:
Name Type Description
fileUrl the file url to open.
Source:

renderLargeIcon() → {HTMLElement}

Handles the rendering of the action's large icon.
Source:
Returns:
the rendered large icon.
Type
HTMLElement

setActionId(newActionId)

Set the action id.
Parameters:
Name Type Description
newActionId the new action id.
Source:

setActionName(newName)

Sets the action name. The action name is displayed under the action large icon.
Parameters:
Name Type Description
newName the new name.
Source:

setDescription(newDescription)

Sets the action's description.
Parameters:
Name Type Description
newDescription the new action description.
Source:

setLargeIcon(newLargeIcon)

Setter for the action's large icon.
Parameters:
Name Type Description
newLargeIcon the new icon source.
Source: