0.1.2 • Published 5 years ago

nega-datatable v0.1.2

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

nega-datatable

\<nega-datatable>

Simple Data table webcomponent

Published on webcomponents.org

See: Documentation, Demo.

Usage

Installation

npm install --save nega-datatable

In an html file

<html>
  <head>
    <script type="module">
      import 'nega-datatable/nega-datatable.js';
    </script>
  </head>
  <body>
    <nega-datatable>
      <span slot="name"></span>
    </nega-datatable>
    <script>
      // Fill table with data
      document.querySelector('nega-datatable').items = [
        {name: 'Kenneth'}
      ]
    </script>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import 'nega-datatable/nega-datatable.js';

class SampleElement extends PolymerElement {
  static get properties() {
    return {
      items: Array
    }
  }
  static get template() {
    return html`
      <nega-datatable items={{items}}>
        <span slot="name"></span>
      </nega-datatable>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Contributing

Feel free to fork and send over PRs. Still a lot of places this can be improved, i.e. styling, more options, or better behaviors.

Installation

git clone https://github.com/kennethklee/nega-datatable
cd nega-datatable
npm install

Running locally

$ npm start

Running tests

$ npm test
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago