From 62728e686f03846eb47030d6e93bb909b831dd77 Mon Sep 17 00:00:00 2001
From: dhanush <51503598+Dhanush111@users.noreply.github.com>
Date: Tue, 15 Oct 2024 22:53:31 +0530
Subject: [PATCH] fix: Correct typo and improve clarity of myRadio.disable()
method description
- Fixed a typo in the documentation: changed "paremeter" to "parameter" in the description of the myRadio.option() method.
- Updated the description of the myRadio.disable() method for better clarity.
- Changed "enables the entire radio button if true is passed and disables it if false is passed."
to "Disables the radio button if true is passed, and enables it if false is passed."
- These changes improve the readability and accuracy of the documentation for createRadio.
---
src/content/reference/en/p5/createRadio.mdx | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/content/reference/en/p5/createRadio.mdx b/src/content/reference/en/p5/createRadio.mdx
index 12baaaf83b..1157de1b8c 100644
--- a/src/content/reference/en/p5/createRadio.mdx
+++ b/src/content/reference/en/p5/createRadio.mdx
@@ -10,8 +10,7 @@ description: >
let myRadio = createSelect('food')
, then each radio option will
- have "food"
as its name
parameter: .
+ have
"food"
as its name
parameter: .
If an existing
or
@@ -28,7 +27,7 @@ description: >
myRadio.option(value, [label])
adds an option to the menu.
- The first paremeter, value
, is a string that sets the option's
+ The first parameter, value
, is a string that sets the option's
value and label. The second parameter, label
, is optional. If
provided, it sets the label displayed for the value
. If an option
with value
already exists, its label is changed and its value is
@@ -45,9 +44,7 @@ description: >
href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/"
target="_blank">HTMLInputElement
.myRadio.disable(shouldDisable)
enables the entire radio
- button if true
is passed and disables it if false
is
- passed.myRadio.disable(shouldDisable)
Disables the radio button if true
is passed and enables it if false
is passed.