5.0.51 • Published 3 months ago

@verdocs/web-sdk-vue v5.0.51

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 months ago

5.0.47

4 months ago

5.0.48

4 months ago

5.0.49

4 months ago

5.0.39

4 months ago

5.0.40

4 months ago

5.0.41

4 months ago

5.0.42

4 months ago

5.0.43

4 months ago

5.0.44

4 months ago

5.0.45

4 months ago

5.0.46

4 months ago

5.0.37

4 months ago

5.0.38

4 months ago

5.0.34

4 months ago

5.0.35

4 months ago

5.0.30

5 months ago

5.0.31

5 months ago

5.0.32

5 months ago

5.0.33

4 months ago

5.0.25

5 months ago

5.0.27

5 months ago

5.0.28

5 months ago

5.0.29

5 months ago

5.0.24

5 months ago

5.0.23

5 months ago

5.0.22

5 months ago

5.0.21

5 months ago