Skip to content

Commit bf41e90

Browse files
authored
Merge pull request #7367 from Prajyot05/fix/#7366
fixes issue #7366: Adjust Option Orientation in CreateRadio() reference.
2 parents 4180fd1 + 53631dc commit bf41e90

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/dom/dom.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,18 @@ p5.prototype.createSelect = function(...args) {
14631463
* @example
14641464
* <div>
14651465
* <code>
1466+
* let style = document.createElement('style');
1467+
* style.innerHTML = `
1468+
* .p5-radio label {
1469+
* display: flex;
1470+
* align-items: center;
1471+
* }
1472+
* .p5-radio input {
1473+
* margin-right: 5px;
1474+
* }
1475+
* `;
1476+
* document.head.appendChild(style);
1477+
*
14661478
* let myRadio;
14671479
*
14681480
* function setup() {
@@ -1472,6 +1484,7 @@ p5.prototype.createSelect = function(...args) {
14721484
* // in the top-left corner.
14731485
* myRadio = createRadio();
14741486
* myRadio.position(0, 0);
1487+
* myRadio.class('p5-radio');
14751488
* myRadio.size(60);
14761489
*
14771490
* // Add a few color options.
@@ -1538,6 +1551,7 @@ p5.prototype.createSelect = function(...args) {
15381551
* // in the top-left corner.
15391552
* myRadio = createRadio();
15401553
* myRadio.position(0, 0);
1554+
* myRadio.class('p5-radio');
15411555
* myRadio.size(50);
15421556
*
15431557
* // Add a few color options.

0 commit comments

Comments
 (0)