Directory

← Back

prism-transit

Web component based on Polymer 2. A data transform component via scoped function

Author

Rating

Popularity

<100

[ This description is mirrored from README.md at github.com/Prhythm/prism-transit on 2019-05-22 ]

<prism-transit>

Published on webcomponents.org

<prism-transit> is a Polymer 2 element provides data transform via it's own function.

Usage

<prism-transit from="[[num]]" to="{{result}}" transform="square">
  function square(n) {
    return n * n;
  }
</prism-transit>

or use comment if needed

<prism-transit from="[[num]]" to="{{result}}" transform="square">
  <!--
  function square(n) {
    return n * n;
  }
  -->
</prism-transit>

Licence

MIT Licence

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

Polymer/polymer#^2.0.0

Released
2017-07-31
Maturity
BROKEN
License
Other

Compatibility

Framework
Polymer 2.0+
Browser
Browser Independent

prism-transit - Vaadin Add-on Directory

Web component based on Polymer 2. A data transform component via scoped function prism-transit - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/Prhythm/prism-transit](https://github.com//Prhythm/prism-transit/blob/2.0.1/README.md) on 2019-05-22 ]** # \ [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/Prhythm/prism-transit) `` is a [Polymer 2](http://polymer-project.org/) element provides data transform via it's own function. # Usage ```html function square(n) { return n * n; } ``` or use comment if needed ```html ``` # Licence MIT Licence
Online