Yöntem View.setQuery
Arama içeren görünümler için arama sorgusunu bu terimlerle önceden doldurun.
İmza
setQuery(query: string): View;
Ayrıntılar
İsteğe bağlı |
Hayır |
Final |
Hayır |
Korumalı |
Hayır |
Statik |
Hayır |
Parametreler
Ad |
Tür |
İsteğe bağlı |
Açıklama |
query |
string |
Hayır |
|
İadeler
View
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-08 UTC.
[null,null,["Son güncelleme tarihi: 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"]]