docs(input): provide info regarding pattern used with date type (#21067)

fixes #21020
This commit is contained in:
Liam DeBeasi
2020-04-17 10:09:21 -04:00
committed by GitHub
parent 497380743d
commit 57b2a6b0cc
3 changed files with 33 additions and 33 deletions

View File

@ -133,7 +133,7 @@ export class Input implements ComponentInterface {
@Prop() name: string = this.inputId;
/**
* A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, or `"password"`, otherwise it is ignored.
* A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, `"date"`, or `"password"`, otherwise it is ignored. When the type attribute is `"date"`, `pattern` will only be used in browsers that do not support the `"date"` input type natively. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date for more information.
*/
@Prop() pattern?: string;