New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nega-datatable

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nega-datatable

Simple data table webcomponent

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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

Keywords

webcomponent

FAQs

Package last updated on 11 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts