datetime-input

WebJar for datetime-input

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

github-com-fooloomanzoo-datetime-input
Последняя версия

Последняя версия

3.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

datetime-input
WebJar for datetime-input
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/fooloomanzoo/datetime-input

Скачать github-com-fooloomanzoo-datetime-input

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-fooloomanzoo-datetime-input/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-fooloomanzoo-datetime-input</artifactId>
    <version>3.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-fooloomanzoo-datetime-input/
implementation 'org.webjars.bower:github-com-fooloomanzoo-datetime-input:3.0.4'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-fooloomanzoo-datetime-input/
implementation ("org.webjars.bower:github-com-fooloomanzoo-datetime-input:3.0.4")
'org.webjars.bower:github-com-fooloomanzoo-datetime-input:jar:3.0.4'
<dependency org="org.webjars.bower" name="github-com-fooloomanzoo-datetime-input" rev="3.0.4">
  <artifact name="github-com-fooloomanzoo-datetime-input" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-fooloomanzoo-datetime-input', version='3.0.4')
)
libraryDependencies += "org.webjars.bower" % "github-com-fooloomanzoo-datetime-input" % "3.0.4"
[org.webjars.bower/github-com-fooloomanzoo-datetime-input "3.0.4"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Published on NPM Published on webcomponents.org

API & Demo

<datetime-input>

An input for date and time.

If you are looking for a picker for date and time, please have a look at datetime-picker.

Example

  <input type="checkbox" checked="{{withTimezone::change}}">with timezone<br><br>
  <datetime-input value="{{value}}" default="2022-06-02T11:12:13" datetime="{{datetime}}" date="{{date}}" time="{{time}}" with-timezone="{{withTimezone}}" timezone="{{timezone}}"></datetime-input><br><br>
  <date-input date="{{date}}" timezone="[[timezone]]"></date-input><br><br>
  <time-input time="{{time}}" timezone="[[timezone]]" with-timezone="{{withTimezone}}"></time-input>
  <p>
    <code>datetime:</code>&#32;<b>[[datetime]]</b><br>
    <code>date:</code>&#32;<b>[[date]]</b><br>
    <code>time:</code>&#32;<b>[[time]]</b><br>
    <code>value:</code>&#32;<b>[[value]]</b>
  </p>

Use locale date formats

The properties date, time, datetime are always in iso8061 but the visualization will be localized. By default your locale date format from window.navigator.language will be used, but you can select another locale:

<p>
  locale:
  <select value="{{locale::change}}">
    <option value=""></option>
    <option value="en">english</option>
    <option value="fr">français</option>
    <option value="de">deutsch</option>
    <option value="es">español</option>
    <option value="it">italiano</option>
    <option value="ru">русский</option>
    <option value="ja">日本語</option>
    <option value="zh">中文</option>
  </select>
  <br><br>
  <input type="checkbox" checked="{{hour12::change}}">hour12 format
</p>

<p>
  <datetime-input locale="{{locale}}" datetime="{{datetime}}" hour12-format="[[hour12]]"></datetime-input>
</p>

<p>datetime: [[datetime]]</p>

Styling

Have a look at input-picker-pattern#input-shared-style to see how to style the element.

Installation

npm i @fooloomanzoo/datetime-input

License

MIT

Версии библиотеки

Версия
3.0.4