translateWithId added

This commit is contained in:
davideraccagni 2022-04-20 20:29:18 +02:00
commit 4805b8e862
5 changed files with 25 additions and 2495 deletions

View file

@ -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