Params

external interface Params(source)

Properties

Link copied to clipboard
abstract external var altText: String

Alt text of the selection that the context menu was invoked on.

Link copied to clipboard

An array of suggested words to show the user to replace the misspelledWord. Only available if there is a misspelled word and spellchecker is enabled.

Link copied to clipboard
abstract external var editFlags: EditFlags

These flags indicate whether the renderer believes it is able to perform the corresponding action.

Link copied to clipboard
abstract external var formControlType: ParamsFormControlType

The source that the context menu was invoked on. Possible values include none, button-button, field-set, input-button, input-checkbox, input-color, input-date, input-datetime-local, input-email, input-file, input-hidden, input-image, input-month, input-number, input-password, input-radio, input-range, input-reset, input-search, input-submit, input-telephone, input-text, input-time, input-url, input-week, output, reset-button, select-list, select-list, select-multiple, select-one, submit-button, and text-area,

Link copied to clipboard
abstract external var frameCharset: String

The character encoding of the frame on which the menu was invoked.

Link copied to clipboard
abstract external var frameURL: String

URL of the subframe that the context menu was invoked on.

Link copied to clipboard
abstract external var hasImageContents: Boolean

Whether the context menu was invoked on an image which has non-empty contents.

Link copied to clipboard
abstract external var isEditable: Boolean

Whether the context is editable.

Link copied to clipboard
abstract external var linkText: String

Text associated with the link. May be an empty string if the contents of the link are an image.

Link copied to clipboard
abstract external var linkURL: String

URL of the link that encloses the node the context menu was invoked on.

Link copied to clipboard
abstract external var mediaFlags: MediaFlags

The flags for the media element the context menu was invoked on.

Link copied to clipboard
abstract external var mediaType: ParamsMediaType

Type of the node the context menu was invoked on. Can be none, image, audio, video, canvas, file or plugin.

Link copied to clipboard
abstract external var menuSourceType: ParamsMenuSourceType

Input source that invoked the context menu. Can be none, mouse, keyboard, touch, touchMenu, longPress, longTap, touchHandle, stylus, adjustSelection, or adjustSelectionReset.

Link copied to clipboard
abstract external var misspelledWord: String

The misspelled word under the cursor, if any.

Link copied to clipboard
abstract external var pageURL: String

URL of the top level page that the context menu was invoked on.

Link copied to clipboard
abstract external var referrerPolicy: Referrer

The referrer policy of the frame on which the menu is invoked.

Link copied to clipboard
abstract external var selectionRect: Rectangle

Rect representing the coordinates in the document space of the selection.

Link copied to clipboard
abstract external var selectionStartOffset: Double

Start position of the selection text.

Link copied to clipboard
abstract external var selectionText: String

Text of the selection that the context menu was invoked on.

Link copied to clipboard
abstract external var spellcheckEnabled: Boolean

If the context is editable, whether or not spellchecking is enabled.

Link copied to clipboard
abstract external var srcURL: String

Source URL for the element that the context menu was invoked on. Elements with source URLs are images, audio and video.

Link copied to clipboard
abstract external var suggestedFilename: String

Suggested filename to be used when saving file through 'Save Link As' option of context menu.

Link copied to clipboard
abstract external var titleText: String

Title text of the selection that the context menu was invoked on.

Link copied to clipboard
abstract external var x: Double

x coordinate.

Link copied to clipboard
abstract external var y: Double

y coordinate.