Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct typo, improve createRadio() method description, and simplify input tag #598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/content/reference/en/p5/createRadio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ description: >

<code>let myRadio = createSelect('food')</code>, then each radio option will

have <code>"food"</code> as its <code>name</code> parameter: <code><input
name="food"></input></code>.
have <code>"food"</code> as its <code>name</code> parameter: <code><input name="food"></code>.

If an existing <code><div></div></code> or <code><span></span></code>

Expand All @@ -28,7 +27,7 @@ description: >
<ul>

<li><code>myRadio.option(value, [label])</code> adds an option to the menu.
The first paremeter, <code>value</code>, is a string that sets the option's
The first parameter, <code>value</code>, is a string that sets the option's
value and label. The second parameter, <code>label</code>, is optional. If
provided, it sets the label displayed for the <code>value</code>. If an option
with <code>value</code> already exists, its label is changed and its value is
Expand All @@ -45,9 +44,7 @@ description: >
href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/"
target="_blank"><code>HTMLInputElement</code></a>.</li>

<li><code>myRadio.disable(shouldDisable)</code> enables the entire radio
button if <code>true</code> is passed and disables it if <code>false</code> is
passed.</li>
<li><code>myRadio.disable(shouldDisable)</code> Disables the radio button if <code>true</code> is passed and enables it if <code>false</code> is passed.</li>

</ul>
line: 1440
Expand Down