Skip to content

Danielg212/vue-doc-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Welcome to vue-doc-reader ๐Ÿ‘‹

Version License: MIT

file input reader for docs

Supported Formats

.xlsx .xlsb .xlsm .xls .xml .csv

Prerequisites

  • node >=10

Install

npm i vue-doc-reader

Usage

In main.ts

import VueDocReader from 'vue-doc-reader'
Vue.component('vue-doc-reader',VueDocReader)

In parent component template

 <vue-doc-reader @onLoad="onLoad" />

Props

  • (optional) label:string - input label.
  • (optional) includeRows:boolean - if true the table data will return with rowIndex property for each row.

Callback

onLoad event callback return {data:Array<any>,headers:Array<string>}

  • data represents array of row objects [columnName:string]:value
  • headers represents array of columns name
  onLoad(results:any){
    this.data = results.data;
    this.headers = results.headers
  }

Author

๐Ÿ‘ค daniel212

Show your support

Give a โญ๏ธ if this project helped you!

About

file input reader for docs ๐Ÿ“„

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published