From 544aa378417624f5198b09a752d25ad5cd491301 Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:03:45 +0530 Subject: [PATCH] Added type definition for disabled prop (#4546) --- components/lib/inputswitch/InputSwitch.d.ts | 5 +++++ doc/common/apidoc/index.json | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/components/lib/inputswitch/InputSwitch.d.ts b/components/lib/inputswitch/InputSwitch.d.ts index 7d4ed9b2e..4fc3bd0aa 100755 --- a/components/lib/inputswitch/InputSwitch.d.ts +++ b/components/lib/inputswitch/InputSwitch.d.ts @@ -101,6 +101,11 @@ export interface InputSwitchProps { * @defaultValue false */ falseValue?: any; + /** + * When present, it specifies that the component should be disabled. + * @defaultValue false + */ + disabled?: boolean | undefined; /** * Identifier of the underlying input element. */ diff --git a/doc/common/apidoc/index.json b/doc/common/apidoc/index.json index be554ed25..e41b00b20 100644 --- a/doc/common/apidoc/index.json +++ b/doc/common/apidoc/index.json @@ -29384,6 +29384,14 @@ "default": "false", "description": "Value in unchecked state." }, + { + "name": "disabled", + "optional": true, + "readonly": false, + "type": "boolean", + "default": "false", + "description": "When present, it specifies that the component should be disabled." + }, { "name": "inputId", "optional": true,