mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Change placeholder text for TimePicker to have ":" separator
This commit is contained in:
parent
66bd254042
commit
ab83560b4d
6 changed files with 10278 additions and 2026 deletions
|
@ -3852,7 +3852,7 @@ None.
|
|||
| value | <code>let</code> | Yes | <code>string</code> | <code>""</code> | Specify the input value |
|
||||
| size | <code>let</code> | No | <code>"sm" | "xl"</code> | -- | Specify the size of the input |
|
||||
| type | <code>let</code> | No | <code>string</code> | <code>"text"</code> | Specify the input type |
|
||||
| placeholder | <code>let</code> | No | <code>string</code> | <code>"hh=mm"</code> | Specify the input placeholder text |
|
||||
| placeholder | <code>let</code> | No | <code>string</code> | <code>"hh:mm"</code> | Specify the input placeholder text |
|
||||
| pattern | <code>let</code> | No | <code>string</code> | <code>"(1[012]|[1-9]):[0-5][0-9](\\s)?"</code> | Specify the `pattern` attribute for the input element |
|
||||
| maxlength | <code>let</code> | No | <code>number</code> | <code>5</code> | Specify the `maxlength` input attribute |
|
||||
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant |
|
||||
|
|
|
@ -9562,7 +9562,7 @@
|
|||
"kind": "let",
|
||||
"description": "Specify the input placeholder text",
|
||||
"type": "string",
|
||||
"value": "\"hh=mm\"",
|
||||
"value": "\"hh:mm\"",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
|
|
8274
package-lock.json
generated
Normal file
8274
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,7 @@
|
|||
export let type = "text";
|
||||
|
||||
/** Specify the input placeholder text */
|
||||
export let placeholder = "hh=mm";
|
||||
export let placeholder = "hh:mm";
|
||||
|
||||
/** Specify the `pattern` attribute for the input element */
|
||||
export let pattern = "(1[012]|[1-9]):[0-5][0-9](\\s)?";
|
||||
|
|
2
types/TimePicker/TimePicker.d.ts
vendored
2
types/TimePicker/TimePicker.d.ts
vendored
|
@ -22,7 +22,7 @@ export interface TimePickerProps
|
|||
|
||||
/**
|
||||
* Specify the input placeholder text
|
||||
* @default "hh=mm"
|
||||
* @default "hh:mm"
|
||||
*/
|
||||
placeholder?: string;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue