lion/packages/input-date
2019-08-14 14:02:15 +02:00
..
src fix: update storybook/linting; adjust story labels, eslint ignores 2019-04-28 15:02:31 +02:00
stories fix: update storybook/linting; adjust story labels, eslint ignores 2019-04-28 15:02:31 +02:00
test chore: add and apply integration suite FormatMixin 2019-08-14 14:02:15 +02:00
CHANGELOG.md chore: release new versions 2019-08-07 13:58:05 +00:00
index.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
lion-input-date.js feat: release inital public lion version 2019-04-26 10:37:57 +02:00
package.json chore: release new versions 2019-08-07 13:58:05 +00:00
README.md chore: fix style of markdown files 2019-07-24 15:20:19 +02:00

Input Date

lion-input-date component is based on the generic text input field. Its purpose is to provide a way for users to fill in a date.

Features

  • based on lion-input
  • makes use of formatDate for formatting and parsing.
  • option to overwrite locale to change the formatting and parsing
  • default label in different languages
  • can make use of date specific validators with corresponding error messages in different languages
    • isDate (default)
    • minDate
    • maxDate
    • minMaxDate

How to use

Installation

npm i --save @lion/input-date
import '@lion/input-date/lion-input-date.js';

// validator import example
import { minDateValidator } from '@lion/validate';

Example

<lion-input-date
  name="date"
  .errorValidators="${[['required'], minDateValidator(100)]}"
></lion-input-date>