mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
translateWithId added
This commit is contained in:
parent
e5b5fdb984
commit
4805b8e862
5 changed files with 25 additions and 2495 deletions
|
@ -84,6 +84,12 @@
|
|||
/** Set to `true` to visually hide the label text */
|
||||
export let hideLabel = false;
|
||||
|
||||
/**
|
||||
* Override the default translation ids
|
||||
* @type {(id: any) => string}
|
||||
*/
|
||||
export let translateWithId = undefined;
|
||||
|
||||
/** Set an id for the list box component */
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
|
@ -243,6 +249,7 @@
|
|||
id="{id}"
|
||||
name="{name}"
|
||||
placeholder="{placeholder}"
|
||||
translateWithId="{translateWithId}"
|
||||
{...$$restProps}
|
||||
on:change
|
||||
on:focus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue