fix: Multiselect - correctly default to locale when selectedItemsLabel is not specified.
chore: update docs closes #6303pull/6414/head
parent
ea59ca3150
commit
46452f616f
|
@ -40412,7 +40412,7 @@
|
|||
"readonly": false,
|
||||
"type": "string",
|
||||
"default": "'{0} items selected'",
|
||||
"description": "Label to display after exceeding max selected labels."
|
||||
"description": "Label to display after exceeding max selected labels. Defaults to value from PrimeVue locale configuration."
|
||||
},
|
||||
{
|
||||
"name": "maxSelectedLabels",
|
||||
|
@ -94997,4 +94997,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ const MultiSelectProps = [
|
|||
name: 'selectedItemsLabel',
|
||||
type: 'string',
|
||||
default: '{0} items selected',
|
||||
description: 'Label to display after exceeding max selected labels.'
|
||||
description: 'Label to display after exceeding max selected labels. Defaults to value from PrimeVue locale configuration.'
|
||||
},
|
||||
{
|
||||
name: 'maxSelectedLabels',
|
||||
|
|
|
@ -76,7 +76,7 @@ export default {
|
|||
},
|
||||
selectedItemsLabel: {
|
||||
type: String,
|
||||
default: '{0} items selected'
|
||||
default: null
|
||||
},
|
||||
maxSelectedLabels: {
|
||||
type: Number,
|
||||
|
|
|
@ -433,7 +433,7 @@ export interface MultiSelectProps {
|
|||
display?: 'comma' | 'chip' | undefined;
|
||||
/**
|
||||
* Label to display after exceeding max selected labels.
|
||||
* @defaultValue '{0} items selected'
|
||||
* @defaultValue 'null'
|
||||
*/
|
||||
selectedItemsLabel?: string | undefined;
|
||||
/**
|
||||
|
@ -524,7 +524,7 @@ export interface MultiSelectProps {
|
|||
filterMessage?: string | undefined;
|
||||
/**
|
||||
* Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
|
||||
* @defaultValue '{0} items selected'
|
||||
* @defaultValue 'null'
|
||||
*/
|
||||
selectionMessage?: string | undefined;
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue