• Reference
  • Nodes
  • Resources
  • Browser

Browser Resource

The Browser Resource provides access to essential web browser APIs.

Actions

Navigate to Page

Navigates the browser to another page.

ParameterTypeDefault
pathstringundefined
targetAnchorElementTargetTypes ("_self" | "_blank" | "_parent" | "_top")_self

Download File from URL

Downloads a file from a specified URL.

ParameterTypeDefault
urlstringundefined

Copy to Clipboard

Copies text to the clipboard.

ParameterTypeDefault
clipboardTextstringundefined

Pop a toast

Displays a floating informational element at the bottom of the screen

ParameterTypeDefault
messagestringundefined
variantToastVariants ("primary" | "secondary" | "success" | "error" | "warning" | "info")primary
dismissButtonstringundefined
durationnumber5000

Open a dialog

Opens a dialog containing a Component to render

ParameterTypeDefault
isVisibleboolean{{true}}
isEnabledboolean{{true}}
tooltipstringundefined
topnumber1
leftnumber1
widthstring128px
minWidthstringnone
maxWidthstringnone
heightstring32px
minHeightstringnone
maxHeightstringnone
overflowOverflow ("auto" | "visible" | "hidden" | "scroll")auto
overflowXOverflow ("auto" | "visible" | "hidden" | "scroll")auto
overflowYOverflow ("auto" | "visible" | "hidden" | "scroll")auto
stylesstringelement.styles {}
objectFitObjectFit ("none" | "contain" | "cover" | "fill" | "scale-down")cover
componentPropsunknown{}
component(string | null)undefined
isDismissibleboolean{{true}}

Close a dialog

Closes a dialog

ParameterTypeDefault
isVisibleboolean{{true}}
isEnabledboolean{{true}}
tooltipstringundefined
topnumber1
leftnumber1
widthstring128px
minWidthstringnone
maxWidthstringnone
heightstring32px
minHeightstringnone
maxHeightstringnone
overflowOverflow ("auto" | "visible" | "hidden" | "scroll")auto
overflowXOverflow ("auto" | "visible" | "hidden" | "scroll")auto
overflowYOverflow ("auto" | "visible" | "hidden" | "scroll")auto
stylesstringelement.styles {}
objectFitObjectFit ("none" | "contain" | "cover" | "fill" | "scale-down")cover
dialogIdstringundefined
Last updated on November 17, 2022