mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix: ComboBox
, MultiSelect
should have multiple translateWithId
functions (#1283)
* fix(combo-box): ListBoxField and ListBoxSelection have different `translateWithId` props * fix(multi-select): ListBoxField and ListBoxSelection have different `translateWithId` props * Run "yarn build docs" * test: assert translateWithIdMenu, translateWIthIdInput props
This commit is contained in:
parent
877173df59
commit
ff2e6276db
8 changed files with 176 additions and 66 deletions
12
types/ComboBox/ComboBox.svelte.d.ts
vendored
12
types/ComboBox/ComboBox.svelte.d.ts
vendored
|
@ -118,6 +118,18 @@ export interface ComboBoxProps
|
|||
*/
|
||||
translateWithId?: (id: any) => string;
|
||||
|
||||
/**
|
||||
* Override the default translation ids for the menu
|
||||
* @default undefined
|
||||
*/
|
||||
translateWithIdMenu?: (id: any) => string;
|
||||
|
||||
/**
|
||||
* Override the default translation ids for the input
|
||||
* @default undefined
|
||||
*/
|
||||
translateWithIdInput?: (id: any) => string;
|
||||
|
||||
/**
|
||||
* Set an id for the list box component
|
||||
* @default "ccs-" + Math.random().toString(36)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue