mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
chore: rename translateWithIdInput to translateWithIdSelection
This commit is contained in:
parent
c44d5e86eb
commit
a2b48f4962
2 changed files with 6 additions and 6 deletions
|
@ -87,7 +87,7 @@
|
||||||
* Defaults to "Clear selected item" since a combo box can only have on selection.
|
* Defaults to "Clear selected item" since a combo box can only have on selection.
|
||||||
* @type {(id: "clearSelection") => string}
|
* @type {(id: "clearSelection") => string}
|
||||||
*/
|
*/
|
||||||
export let translateWithIdInput = undefined;
|
export let translateWithIdSelection = undefined;
|
||||||
|
|
||||||
/** Set an id for the list box component */
|
/** Set an id for the list box component */
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
@ -333,7 +333,7 @@
|
||||||
<ListBoxSelection
|
<ListBoxSelection
|
||||||
on:clear
|
on:clear
|
||||||
on:clear="{clear}"
|
on:clear="{clear}"
|
||||||
translateWithId="{translateWithIdInput}"
|
translateWithId="{translateWithIdSelection}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
open="{open}"
|
open="{open}"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -103,10 +103,10 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override the label of the clear button when the input has a selection.
|
* Override the label of the clear button when the input has a selection.
|
||||||
* Defaults to "Clear selected item" and "Clear all items"
|
* Defaults to "Clear selected item" and "Clear all items" if more than one item is selected
|
||||||
* @type {(id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId) => string}
|
* @type {(id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId) => string}
|
||||||
*/
|
*/
|
||||||
export let translateWithIdInput = undefined;
|
export let translateWithIdSelection = undefined;
|
||||||
|
|
||||||
/** Specify the title text */
|
/** Specify the title text */
|
||||||
export let titleText = "";
|
export let titleText = "";
|
||||||
|
@ -382,7 +382,7 @@
|
||||||
}));
|
}));
|
||||||
if (fieldRef) fieldRef.blur();
|
if (fieldRef) fieldRef.blur();
|
||||||
}}"
|
}}"
|
||||||
translateWithId="{translateWithIdInput}"
|
translateWithId="{translateWithIdSelection}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -447,7 +447,7 @@
|
||||||
inputValue = '';
|
inputValue = '';
|
||||||
open = false;
|
open = false;
|
||||||
}}"
|
}}"
|
||||||
translateWithId="{translateWithIdInput}"
|
translateWithId="{translateWithIdSelection}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
open="{open}"
|
open="{open}"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue