Skip to content

Commit

Permalink
Merge pull request #7367 from Prajyot05/fix/#7366
Browse files Browse the repository at this point in the history
fixes issue #7366: Adjust Option Orientation in CreateRadio() reference.
  • Loading branch information
davepagurek authored Nov 25, 2024
2 parents 4180fd1 + 53631dc commit bf41e90
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,18 @@ p5.prototype.createSelect = function(...args) {
* @example
* <div>
* <code>
* let style = document.createElement('style');
* style.innerHTML = `
* .p5-radio label {
* display: flex;
* align-items: center;
* }
* .p5-radio input {
* margin-right: 5px;
* }
* `;
* document.head.appendChild(style);
*
* let myRadio;
*
* function setup() {
Expand All @@ -1472,6 +1484,7 @@ p5.prototype.createSelect = function(...args) {
* // in the top-left corner.
* myRadio = createRadio();
* myRadio.position(0, 0);
* myRadio.class('p5-radio');
* myRadio.size(60);
*
* // Add a few color options.
Expand Down Expand Up @@ -1538,6 +1551,7 @@ p5.prototype.createSelect = function(...args) {
* // in the top-left corner.
* myRadio = createRadio();
* myRadio.position(0, 0);
* myRadio.class('p5-radio');
* myRadio.size(50);
*
* // Add a few color options.
Expand Down

0 comments on commit bf41e90

Please sign in to comment.