Copied successfully!
<pcui_upload v-model="fileUploaded"
ref="demoUploads"
:is-multiple="true"
:file-size="5240"
:disabled="false"
:ajax-url="uploadUrl"
:ajax-data="parameter"
:file-types="fileTypes"
button-alignment="right"
v-bind:upload-button-callback="demoUpload"
v-bind:cancel-button-callback="demoCancel"
v-bind:remove-button-callback="demoRemove">
</pcui_upload>
Copied successfully!
var uploadDOM = new Vue({
el: '#demo-upload',
data: {
fileUploaded: [],
parameter: {
"billerId": '1',
"templateType": 'johncarl'
},
fileTypes: 'image/gif, image/jpeg, image/jpg, image/pjpeg, image/x-png, image/png, application/pdf, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/pdf'
},
components: {
pcui_upload: PCUIUploadComponent
},
methods: {
demoUpload: function () {
console.log('upload');
},
demoCancel: function (key) {
console.log(key);
},
demoRemove: function (key) {
console.log(key);
}
}
});