एक <button/> तत्व बनाता है।
पहला पैरामीटर, label, एक स्ट्रिंग है जो बटन पर प्रदर्शित लेबल सेट करता है।
दूसरा पैरामीटर, value, वैकल्पिक है। यह एक स्ट्रिंग है जो बटन का मान निर्धारित करती है। अधिक जानकारी के लिए देखें एमडीएन।
उदाहरण
सिंटैक्स
createButton(label, [value])
पैरामीटर्स
label
स्ट्रिंग:
बटन पर प्रदर्शित लेबल।
value
स्ट्रिंग:
बटन का मान |
Returns
p5.Element: नया p5.Element ऑब्जेक्ट।
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!