तरीका View.setQuery
अगर आपको खोजने वाले व्यू में कुछ खोजना है, तो खोज क्वेरी में ये शब्द अपने-आप शामिल करें.
हस्ताक्षर
setQuery(query: string): View;
विवरण
वैकल्पिक |
नहीं |
फ़ाइनल |
नहीं |
सुरक्षित सेक्स |
नहीं |
स्थिर |
नहीं |
पैरामीटर
नाम |
टाइप |
वैकल्पिक |
ब्यौरा |
query |
string |
नहीं |
|
रिटर्न
View
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया."],[[["The `setQuery` method allows you to prepopulate the search query within a view."],["This method is primarily used for views that involve search functionalities."],["It accepts a single parameter, `query`, which is a string representing the search terms to be pre-filled."],["Using `setQuery` is not optional and will modify the view directly."],["Upon execution, this method returns an instance of the `View` object."]]],["The core function `setQuery` allows for prepopulating a search query within a view. It accepts a single, mandatory string parameter named `query`. This function is not optional, final, protected, or static. Executing `setQuery` with a string will modify the view by pre-filling the search field with the provided terms, returning the modified View object.\n"]]