www.dextsolution.com
DEXTUPLOAD
X5
Vue.js Reference > DEXTUploadX5Plugin

# DEXTUploadX5Plugin

Plugin

  dextuploadx5-vue 0.0.1 or later

  DEXTUploadX5Plugin is a Vue plugin that loads the DEXTUploadX5 product script in a Vue.js environment and prepares the loader and global settings used by child Vue X5 components.

  Based on the supplied authKey and productPath, this plugin sets dextuploadx5Configuration on the browser global object and dynamically loads dextuploadx5.js.

      import { createApp } from "vue";
      import App from "./App.vue";
      import { DEXTUploadX5Plugin } from "dextuploadx5-vue";

      createApp(App)
        .use(DEXTUploadX5Plugin, {
          authKey: "...",
          productPath: "/dx5/"
        })
        .mount("#app");

  Do not render DEXTUploadX5 Vue components before DEXTUploadX5Plugin is installed.

  The actual X5 product files must be placed at a browser-accessible location, and dextuploadx5.js is loaded relative to productPath.

Properties
  - authKey
  - productPath