data-scalars

Automatic representation of a scalar value as Polymer Elements (Iron and Paper) - in either read-only or editable mode.

Usage no npm install needed!

<script type="module">
  import dataScalars from 'https://cdn.skypack.dev/data-scalars';
</script>

README

<data-scalars>

Automatic representation of a scalar value as Polymer Elements (Iron and Paper) - in either read-only or editable mode.

data-scalars elements consume an immutable data egg data structure and produce suitable Polymer elements to represent that value. The data egg is a simple structure, which contains the scalar value, its type and logical formatting hints.

Designed to work hand-in-hand with data nuggets data structures delivered by data-pipes, although both can be used independently.

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.