Directory

time-elements - Vaadin Add-on Directory

Web component extensions to the standard time-elements - Vaadin Add-on Directory
# <time> element extensions Formats a timestamp as a localized string or as relative text that auto-updates in the user's browser. This allows the server to cache HTML fragments containing dates and lets the browser choose how to localize the displayed time according to the user's preferences. For example, the server may have cached the following generated markup: ```html April 1, 2014 4:30pm ``` Every visitor is served the same markup from the server's cache. When it reaches the browser, the custom `local-time` JavaScript localizes the element's text into the local timezone and formatting. ```html 1 Apr 2014 21:30 ``` Dates are displayed before months, and a 24-hour clock is used, according to the user's browser settings. If the browser's JavaScript is disabled, the default text served in the cached markup is still displayed. ## Installation Available on [npm](https://www.npmjs.com/) as [**time-elements**](https://www.npmjs.com/package/time-elements). ``` $ npm install time-elements ``` ## Usage This component provides three custom subtypes of the standard HTML `
View on GitHub
View on NPM

time-elements version 1.0.0
### Dependencies

time-elements version 1.0.2
### Dependencies

time-elements version 1.1.0
### Dependencies

time-elements version 1.2.0
### Dependencies

time-elements version 2.0.0
### Dependencies