1.1.24 • Published 3 years ago

@vanillawc/wc-csv-table v1.1.24

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

Installation

npm i @vanillawc/wc-csv-table

Import from NPM

<script type="module" src="node_modules/@vanillawc/wc-csv-table/index.js"></script>

Import from CDN

<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-csv-table@1/index.js"></script>

Demo

Try it on WebComponents.dev

Usage

Attributes

  • src - load an external CSV file
  • no-headers - there is no header row

Properties

  • value - get/set the editor's contents
  • noHeaders - no-headers as a property

Basic Usage

<wc-csv-table src="sample.csv"></wc-csv-table>

'no-headers' Attribute

Use no-headers if your data doesn't contain row headers

<wc-csv-table src="sample2.csv" no-headers></wc-csv-table>

Styling

By default, <wc-csv-table> contains an un-styled <table> element in the lightDOM. That means, it will inherit any global CSS styles present on the site and can be styled directly using CSS.

Contributing

See CONTRIBUTING.md

1.1.23

3 years ago

1.1.22

3 years ago

1.1.24

3 years ago

1.1.21

4 years ago

1.1.19

4 years ago

1.1.20

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

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