3

<date-time> element

 1 year ago
source link: https://architrixs.github.io/date-time-custom-element/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

date-time-custom-element

<date-time> element

A custom element that displays a date and time.

Demo

Installation

Available on npm as @architrixs/date-time-element.

$ npm install --save @architrixs/date-time-element

Usage

Script

Import as ES modules:

import '@architrixs/date-time-element'

Include with a script tag:

<script type="module" src="./node_modules/@architrixs/date-time-element/dist/src/date-time.js">

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

License

Distributed under the MIT license. See LICENSE for details.

This site is open source. Improve this page.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK