メソッド View.setQuery
検索を含むビューの場合は、検索クエリにこれらのキーワードを事前に入力します。
署名
setQuery(query: string): View;
詳細
省略可 |
いいえ |
決勝 |
いいえ |
保護 |
いいえ |
静的 |
いいえ |
パラメータ
名前 |
Type |
省略可能 |
説明 |
query |
string |
いいえ |
|
戻り値
View
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 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"]]