From a1be1d24bcaa254fd172ccd6e6023673ab134826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 12 Aug 2022 15:10:10 +0300 Subject: [PATCH] Password | placeholder prop --- api-generator/components/password.js | 6 ++++++ src/components/password/Password.d.ts | 4 ++++ src/components/password/Password.vue | 7 +++++-- src/views/password/PasswordDoc.vue | 6 ++++++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/api-generator/components/password.js b/api-generator/components/password.js index f293a7005..de7388336 100644 --- a/api-generator/components/password.js +++ b/api-generator/components/password.js @@ -77,6 +77,12 @@ const PasswordProps = [ default: "pi pi-eye", description: "Icon to show displaying the password as plain text." }, + { + name: "placeholder", + type: "string", + default: "null", + description: "Placeholder text for the input." + }, { name: "inputId", type: "string", diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index ed1eaabb9..5b6c158d4 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; + /** + * Placeholder text for the input. + */ + placeholder?: string | undefined; /** * Identifier of the underlying input element. */ diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index 0dcf8ae79..a00c5df42 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -1,7 +1,7 @@