We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9df78b + 2e3ce61 commit 2d00990Copy full SHA for 2d00990
src/core/p5.Element.js
@@ -26,6 +26,18 @@ var p5 = require('./core');
26
p5.Element = function(elt, pInst) {
27
/**
28
* Underlying HTML element. All normal HTML methods can be called on this.
29
+ * @example
30
+ * <div>
31
+ * <code>
32
+ * createCanvas(300, 500);
33
+ * background(0, 0, 0, 0);
34
+ * var input = createInput();
35
+ * input.position(20, 225);
36
+ * var inputElem = new p5.Element(input.elt);
37
+ * inputElem.style('width:450px;');
38
+ * inputElem.value('some string');
39
+ * </code>
40
+ * </div>
41
*
42
* @property elt
43
* @readOnly
0 commit comments