mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Refactor #5176 - invalid property added
This commit is contained in:
parent
b42c9eb7ee
commit
a9a254915c
54 changed files with 198 additions and 12 deletions
|
@ -18,6 +18,10 @@ export default {
|
|||
default: '200px'
|
||||
},
|
||||
placeholder: String,
|
||||
invalid: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
disabled: Boolean,
|
||||
inputId: {
|
||||
type: String,
|
||||
|
|
5
components/lib/multiselect/MultiSelect.d.ts
vendored
5
components/lib/multiselect/MultiSelect.d.ts
vendored
|
@ -331,6 +331,11 @@ export interface MultiSelectProps {
|
|||
* Label to display when there are no selections.
|
||||
*/
|
||||
placeholder?: string | undefined;
|
||||
/**
|
||||
* When present, it specifies that the component should have invalid state style.
|
||||
* @defaultValue false
|
||||
*/
|
||||
invalid?: boolean | undefined;
|
||||
/**
|
||||
* When present, it specifies that the component should be disabled.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -120,6 +120,7 @@ const classes = {
|
|||
{
|
||||
'p-multiselect-chip': props.display === 'chip',
|
||||
'p-disabled': props.disabled,
|
||||
'p-invalid': props.invalid,
|
||||
'p-focus': instance.focused,
|
||||
'p-inputwrapper-filled': props.modelValue && props.modelValue.length,
|
||||
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue