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

WebShare Op

WebShare

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.


Edit Documentation

Full Name
  • Ops.Devices.Browser.WebShare
Visibility
  • Core Op - Official cables op
AuthorCompatibilityTest Patches


 

INPUT PORTS


Text (String)

text to share

URL (String)

url to share

File

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

OUTPUT PORTS


Status (String)

success/error

Supported (Number)

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


Usages of WebShare

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


created opuser avatarpandur - 2022-03-22
Ops.User.pandur.WebShare renamed to Ops.Dev.WebShareuser avatarpandur - 2022-03-22
Ops.Dev.WebShare renamed to Ops.Browser.WebShareuser avatarpandur - 2022-05-09
renameOps.Browser.WebShare renamed to Ops.Devices.Browser.WebShareuser avatarpandur - 2023-12-06