mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
fix: remove translateWithIdMenu, use translateWithId instead
This commit is contained in:
parent
0c39506dcb
commit
ba8321ec8d
2 changed files with 2 additions and 15 deletions
|
@ -82,13 +82,6 @@
|
||||||
*/
|
*/
|
||||||
export let translateWithId = undefined;
|
export let translateWithId = undefined;
|
||||||
|
|
||||||
/**
|
|
||||||
* Override the menu label based on the open state.
|
|
||||||
* Defaults to "Open menu" and "Close menu"
|
|
||||||
* @type {(id: any) => string}
|
|
||||||
*/
|
|
||||||
export let translateWithIdMenu = undefined;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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" since a combo box can only have on selection.
|
* Defaults to "Clear selected item" since a combo box can only have on selection.
|
||||||
|
@ -246,7 +239,7 @@
|
||||||
}}"
|
}}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
translateWithId="{translateWithIdMenu}"
|
translateWithId="{translateWithId}"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
bind:this="{ref}"
|
bind:this="{ref}"
|
||||||
|
|
|
@ -101,12 +101,6 @@
|
||||||
*/
|
*/
|
||||||
export let translateWithId = undefined;
|
export let translateWithId = undefined;
|
||||||
|
|
||||||
/**
|
|
||||||
* Override the default translation ids for the menu
|
|
||||||
* @type {(id: any) => string}
|
|
||||||
*/
|
|
||||||
export let translateWithIdMenu = undefined;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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"
|
||||||
|
@ -375,7 +369,7 @@
|
||||||
}}"
|
}}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
translateWithId="{translateWithIdMenu}"
|
translateWithId="{translateWithId}"
|
||||||
>
|
>
|
||||||
{#if checked.length > 0}
|
{#if checked.length > 0}
|
||||||
<ListBoxSelection
|
<ListBoxSelection
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue