Git Product home page Git Product logo

moment-element's Introduction

Build status Published on webcomponents.org

<moment-element>

Web Component (with Polymer) wrapper for the moment library.

Example:

<moment-element output="{{outputA}}">[[outputA]]</moment-element>

<moment-element datetime="1991-12-31" output="{{outputB}}"></moment-element>
<div>[[outputB]]</div>

moment-element's People

Contributors

abdonrd avatar jdbence avatar tomk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

moment-element's Issues

RFC: "output-hidden" feature

Hello,

I'd like to use this component to only format my date, but not to render anything into my html. The "output" will be input for another component.

For this, I want to propose an html attribute "output-hidden" to let the component know to not render, but still set the "output" property.

I can create a pull request for this feature.

Thanks for your comments,
Matthias

Better readme.md

Hey, congrats for element ๐Ÿ‘

So, what do you think for improve the readme with more informations? Like: How to developing, contribute, tests...

No way to specify output timezone

We have no access to the underlying moment object because it is discarded each time the output is updated. This puts many features of moment out of reach, including specifying the timezone (utcOffset method).

datetime value not working in 2.0

[[date]]

the moment element would read date values such as: 1998-12-30T00:00:00.000Z within a dom-repeat template and display formatted output in the output-format prior to polymer 2.0....now dates are displayed but incorrectly as a single repeated value

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.