Vue CLI with jQWidgets

This tutorial will show you how to use Vue CLI along with the Vue Components by jQWidgets.
Please, follow the instructions below:


I. Install the Vue CLI globally, so we can have it's commands available:

npm install -g @vue/cli

II. Create an Vue CLI application:

vue create jqwidgets-vue-cli-app   //Choose the default preset

III. Navigate to the application:

cd jqwidgets-vue-cli-app

IV. Install the jQWidgets dependency:

npm install jqwidgets-scripts --save--dev

V. Copy the styles folder from node_modules/jqwidgets-scripts/jqwidgets to the public folder.

VI. Refer the jqx.base.css file and the files of the other themes that you use in index.html:

<link rel="stylesheet" type="text/css" href="./styles/jqx.base.css" />

VII. Open the App.vue file located in src folder and replace the content with the following:


VIII. Run the Vue CLI development server:

npm run serve

IX. Navigate to localhost:8080 and see the result: