रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
फ़ील्ड को पसंद के मुताबिक बनाना
हालांकि, Block कई उपयोगी फ़ील्ड उपलब्ध कराता है, लेकिन आपके ऐप्लिकेशन में कोई खास
केस हो सकता है. फ़ील्ड को पसंद के मुताबिक बनाते समय, ये कदम उठाएं:
आपको जिस तरह के फ़ील्ड की ज़रूरत है उससे मिलते-जुलते फ़ील्ड के दस्तावेज़ पढ़ें; वे
पसंद के मुताबिक बनाने के लिए एक उपयोगी इंटरफ़ेस दे सकते हैं. उदाहरण के लिए,
ड्रॉपडाउन में कई सुविधाओं को छिपाया गया है.
अपनी समस्या को हल करने के लिए, वैलिडेटर का इस्तेमाल करें.
पुष्टि करने वाले टूल की मदद से, किसी फ़ील्ड की वैल्यू बदलने पर, सिर्फ़ कुछ वैल्यू स्वीकार की जा सकती हैं, इनपुट में बदलाव किया जा सकता है या फ़ंक्शन को ट्रिगर किया जा सकता है.
किसी फ़ील्ड को बड़ा करने पर विचार करें.
अगर कोई ऐसा फ़ील्ड है जो आपके लिए ज़रूरी वैल्यू टाइप को दिखाता है, लेकिन आपको उसके एडिटर, उसके थीम या दिखने वाले टेक्स्ट में बदलाव करना है, तो आपके पास एक सब-क्लास बनाने का सब-क्लास है. इसमें आपको उन खास हिस्सों को ओवरराइड करने के साथ-साथ कई फ़ंक्शन एक साथ मिलते हैं जिनमें आप बदलाव करना चाहते हैं.
नया फ़ील्ड टाइप बनाएं.
हालांकि, यह सबसे असरदार विकल्प है, लेकिन यह सबसे ज़्यादा समय भी लेता है. साथ ही, आम तौर पर इसका इस्तेमाल सिर्फ़ तब किया जाना चाहिए, जब आपको नई तरह की वैल्यू सेव करने की ज़रूरत हो.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2022-12-06 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2022-12-06 (UTC) को अपडेट किया गया."],[[["Blockly offers customization options beyond its built-in fields, allowing developers to tailor fields to their specific needs."],["Before creating a new field type, explore existing fields, validators, and extension capabilities for potential solutions."],["Leverage validators to control accepted values, modify input, or trigger actions based on field value changes."],["Extend existing fields to modify their editor, appearance, or displayed text while inheriting core functionality."],["Creating a new field type is the most powerful but time-intensive option, reserved for storing new value types."]]],["Customizing Blockly fields involves several steps: First, review documentation of similar fields for potential customization options. Second, use validators to control accepted values, modify input, or trigger actions upon value changes. Third, extend existing fields by creating subclasses to modify their editor, appearance, or displayed text. Finally, create a new field type for storing novel value types, though this is the most complex option.\n"]]