1.1.11 • Published 5 years ago

digit-cell v1.1.11

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
5 years ago

Published on NPM

<digit-cell>

The digit-cell element represents a single Digit within some component or application like a Digital Clock square.

See: Demo.

Usage

Installation

npm install --save digit-cell

In an HTML file

<html>
  <head>
    <script type="module">
      import 'digit-cell.js';
    </script>
  </head>
  <body>
    <digit-cell value="7" size="50"></digit-cell>
  </body>
</html>

In a Polymer 3 element

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

import 'digit-cell.js';

class ExampleElement extends PolymerElement {
  static get template() {
    return html`
      <digit-cell value="7" size="50"></digit-cell>
    `;
  }
}

customElements.define('example-element', ExampleElement);

Contributing

If you want to send a PR to this element, here are the instructions for running the tests and demo locally:

Installation

git clone https://github.com/PolymerElements/iron-icon
cd iron-icon
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve -o

Running the tests

polymer test --npm
1.1.11

5 years ago

1.1.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago