beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

WebShare Op



WebShare
Namespace: Ops.Browser

Op author: pandur

Opens a sharing dialog to share text and images


some browsers (mostly mobile) support the native web-share-api and open a sharing dialog that let's you select an app to share content with.

when triggered, this op opens the sharing dialog on browsers that support the api.

some browsers (i.e. firefox mobile) do not implement sharing files at the moment, the op will fall back to sharing without and image in these cases.

if you do this in/from an iframe make sure you allow the "web-share" feature to make this work on firefox.



  Brower support [caniuse.com]

Inputs

Text (String)

text to share

URL (String)

url to share

File

Base64 File (String)
Data URL (String)
Filetype (String)
Filename (String)
Share (Trigger)

Outputs

Status (String)

success/error

Supported (Number)

true/false for browser support of web-share-api


Caught a mistake or want to contribute to the documentation?

Edit Documentation 

webshare op example


Patches using WebShare

  • Examples (1)
  • Public
  • My Patches

Changelog


created op
2022-03-22 - pandur
Ops.User.pandur.WebShare renamed to Ops.Dev.WebShare
2022-03-22 - pandur
Ops.Dev.WebShare renamed to Ops.Browser.WebShare
2022-05-09 - pandur