diff --git a/api-generator/components/calendar.js b/api-generator/components/calendar.js index 595067450..f1a19b36b 100644 --- a/api-generator/components/calendar.js +++ b/api-generator/components/calendar.js @@ -227,6 +227,18 @@ const CalendarProps = [ default: "body", description: 'A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are "body" for document body and "self" for the element itself.' }, + { + name: "disabled", + type: "boolean", + default: "false", + description: "When present, it specifies that the element should be disabled." + }, + { + name: "readonly", + type: "boolean", + default: "false", + description: "When present, it specifies that an input field is read-only." + }, { name: "placeholder", type: "string", diff --git a/src/components/inputnumber/InputNumber.d.ts b/src/components/inputnumber/InputNumber.d.ts index d61fdd492..efad211c0 100755 --- a/src/components/inputnumber/InputNumber.d.ts +++ b/src/components/inputnumber/InputNumber.d.ts @@ -133,6 +133,10 @@ export interface InputNumberProps { * Default value is true. */ allowEmpty?: boolean | undefined; + /** + * When present, it specifies that the component should be disabled. + */ + disabled?: boolean | undefined; /** * When present, it specifies that an input field is read-only. */ diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 5b6c158d4..75ae82507 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -59,6 +59,10 @@ export interface PasswordProps extends InputHTMLAttributes { * Default value is 'pi pi-eye'. */ showIcon?: string | undefined; + /** + * When present, it specifies that the component should be disabled. + */ + disabled?: boolean | undefined; /** * Placeholder text for the input. */ diff --git a/src/views/calendar/CalendarDoc.vue b/src/views/calendar/CalendarDoc.vue index 399c684be..3b74e5ecb 100755 --- a/src/views/calendar/CalendarDoc.vue +++ b/src/views/calendar/CalendarDoc.vue @@ -429,6 +429,18 @@ export default { A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are "body" for document body and "self" for the element itself. + + disabled + boolean + false + When present, it specifies that the element should be disabled. + + + readonly + boolean + false + When present, it specifies that an input field is read-only. + placeholder string diff --git a/src/views/inputnumber/InputNumberDoc.vue b/src/views/inputnumber/InputNumberDoc.vue index 34ecb1b8f..12ead6615 100755 --- a/src/views/inputnumber/InputNumberDoc.vue +++ b/src/views/inputnumber/InputNumberDoc.vue @@ -272,6 +272,12 @@ Vertical true Determines whether the input field is empty. + + disabled + boolean + false + When present, it specifies that the element should be disabled. + readonly boolean diff --git a/src/views/password/PasswordDoc.vue b/src/views/password/PasswordDoc.vue index d11430b1a..0cc3e5c2c 100755 --- a/src/views/password/PasswordDoc.vue +++ b/src/views/password/PasswordDoc.vue @@ -155,6 +155,12 @@ import Password from 'primevue/password'; pi pi-eye Icon to show displaying the password as plain text. + + disabled + boolean + false + When present, it specifies that the element should be disabled. + placeholder string