Skip to content

Introduction

This section contains tools that provide commonly used functionality across different parts of the SDK. These general-purpose utility functions can simplify common tasks like data manipulation, formatting, logging, and error handling. They are not tied to specific features or modules of the SDK.

Copy to clipboard

vimOS.utils.copyToClipboard(someText)

Allows you to set a specific text or data in your application to be copied to the user clipboard, making it available for pasting into the EHR or other applications providing users with a convenient way to export data or information.

Example

ts
vimOS.utils.copyToClipboard("paste this text somewhere");

note

TIP

copyToClipboard has been optimized to work in different environments and is well tested and widely supported. We provide it as a tool that will reduce the need to be aware of browser/environment specifics