WebKit2.FindController.prototype.count_matches
function count_matches(search_text: String, find_options: Number(guint32), max_match_count: Number(guint)): void { // Gjs wrapper for webkit_find_controller_count_matches() }
Counts the number of matches for search_text found in the WebKit2.WebView with the provided find_options. The number of matches will be provided by the WebKit2.FindController::counted-matches signal.
- search_text
the text to look for
- find_options
a bitmask with the WebKit2.FindOptions used in the search
- max_match_count
the maximum number of matches allowed in the search