1.0.14 • Published 4 years ago

simple_html_to_excel v1.0.14

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

simple_html_to_excel

export Excel file in HTML element contents.

install

npm install simple_html_to_excel --save

use

import { exportExcelById } from 'simple_html_to_excel'

exportExcelById('element_id')
<script type="module" src="https://unpkg.com/simple_html_to_excel@latest/dist/main.js" charset="utf-8"></script>
...
<script>
function download(id) {
  html_to_excel.exportExcelById(id)
}
</script>

methods

  • exportExcelById
    • Download Excel file by element uniq id
  • exportExcelByHtml
    • Download Excel file by HTML text (element.innerHTML)

arguments

  • exportExcelById
argumentrequiredtypedefault
elementIdtruestring-
fileNamefalsestringdownload.xls
sheetNamefalsestringWorksheet
  • exportExcelByHtml

    argumentrequiredtypedefault
    htmltruestring-
    fileNamefalsestringdownload.xls
    sheetNamefalsestringWorksheet

warning

  • Only simple type exports
  • Displayed in a better format when using table elements.
  • Excel notification(type error) is displayed when you open the downloaded file.
1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.10

4 years ago

0.1.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago