5.0.51 • Published 9 months ago

@verdocs/web-sdk-vue v5.0.51

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Verdocs Vue SDK

Library of components and embeds to quickly build Verdocs-enabled apps in Vue.

This SDK provides UI controls and components for building rich, Verdocs-enabled document signing experiences for the Web. Components are built in StencilJS for maximum portability between front-end frameworks. This package contains the Vue framework components - for React or Angular, please see the parent repository.

Installation

Begin by installing the SDK into your app. Currently Vue >= 3 is supported. Although it is not required, it is recommended to install the Verdocs JS SDK as well, as it provides the underlying API access for the components in this package.

npm i -S @verdocs/web-sdk-vue @verdocs/js-sdk

Next, per the instructions at Vue and Web Components, configure the Vue plugin for Vite to support custom components by adding the following to your vite.config.js:

...

export default defineConfig({
  plugins: [
    vue({ 
      // Add this configuration block
      template: {
        compilerOptions: {
          // treat all tags with a dash as custom elements
          isCustomElement: (tag) => tag.includes('-')
        }
      }
    }),
    ...
  ],
  ...
})

Finally, register the Verdocs Web SDK with Vue by adding the following to your App.vue:

...
import {ComponentLibrary, VerdocsAuth} from '@verdocs/web-sdk-vue';
...

if (ComponentLibrary?.install) {
ComponentLibrary.install();
}

Usage

Verdocs Web Components may be used like any other custom component in Vue. The only adjustment to keep in mind is that the component name must be in kebab-case, and event handlers must omit the on prefix, e.g.:

  <verdocs-templates-list 
    @viewTemplate="(event) => console.log('Selected', event.detail)" 
  />
5.0.51

9 months ago

5.0.47

9 months ago

5.0.48

9 months ago

5.0.49

9 months ago

5.0.39

9 months ago

5.0.40

9 months ago

5.0.41

9 months ago

5.0.42

9 months ago

5.0.43

9 months ago

5.0.44

9 months ago

5.0.45

9 months ago

5.0.46

9 months ago

5.0.37

9 months ago

5.0.38

9 months ago

5.0.34

9 months ago

5.0.35

9 months ago

5.0.30

10 months ago

5.0.31

10 months ago

5.0.32

10 months ago

5.0.33

10 months ago

5.0.25

10 months ago

5.0.27

10 months ago

5.0.28

10 months ago

5.0.29

10 months ago

5.0.24

10 months ago

5.0.23

10 months ago

5.0.22

10 months ago

5.0.21

10 months ago