Skip to content

KatapultDevelopment/pmp-simple-date-input

This branch is 13 commits ahead of, 1 commit behind biztek/pmp-simple-date-input:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e88e292 · Apr 11, 2022

History

57 Commits
May 11, 2020
May 11, 2020
Oct 15, 2016
May 11, 2020
Oct 15, 2016
May 11, 2020
Jun 14, 2017
Jun 24, 2017
May 11, 2020
May 11, 2020
May 11, 2020
Apr 11, 2022
May 12, 2020
Jun 30, 2017

Repository files navigation

Build Status

Sauce Test Status

Sauce Test Status

Published on webcomponents.org

Demo and API docs

<pmp-simple-date-input>

<pmp-simple-date-input> is a single-line text field to hold valid Date input of given date pattern.

<pmp-simple-date-input label="Input label"></pmp-simple-date-input>

It includes an optional label,invalid,autovalidate and required attributes.

<pmp-simple-date-input label="Input label"></pmp-simple-date-input>
<pmp-simple-date-input invalid="boolean value"></pmp-simple-date-input>
<pmp-simple-date-input autoValidate="boolean value"></pmp-simple-date-input>
<pmp-simple-date-input required="boolean value"></pmp-simple-date-input>

Listening for input changes

By default, it listens for changes on the bind-value attribute on its children nodes and perform tasks such as auto-validating and label styling when the bind-value changes.

Validation

If the auto-validate attribute is set, element validates the input whether it is valid date of given pattern and update the label styling when the input value changes.

License

Licensed under Apache 2.0.

About

A single-line text field to hold valid Date input of given date pattern

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.4%
  • HTML 23.6%