QuickFind
Feature that allows the user to search in a column by focusing a cell and typing. Navigate between hits using the keyboard, [f3] or [ctrl]/[cmd] + [g] moves to next, also pressing [shift] moves to previous.
This feature is disabled by default.
Keyboard shortcuts
This feature has the following default keyboard shortcuts:
| Keys | Action | Action description |
|---|---|---|
F3 |
goToNextHit | Move focus to next search hit |
Shift+F3` |
goToPrevHit | Move focus to previous search hit |
Ctrl+G |
goToNextHit | Move focus to next search hit |
Ctrl+Shift+G |
goToPrevHit | Move focus to previous search hit |
Ctrl+Shift+F3 |
showFilterEditor | Shows the filter editor |
Escape |
clearSearch | Removes the search completely |
Ctrl is the equivalent to Command and Alt
is the equivalent to Option for Mac usersFor more information on how to customize keyboard shortcuts, please see our guide
// enable QuickFind
let grid = new Grid({
features: {
quickFind: true
}
});
// navigate to next hit programmatically
grid.features.quickFind.gotoNextHit();
//<code-header>
fiddle.title = 'Quick find';
//</code-header>
targetElement.innerHTML = '<p>Select a cell and start typing to search in that column. Go to next hit using F3 or CMD+g</p>';
const grid = new Grid({
appendTo : targetElement,
// makes grid as high as it needs to be to fit rows
autoHeight : true,
features : {
// enable quickfind
quickFind : true
},
data : DataGenerator.generateData(10),
columns : [
{ field : 'name', text : 'Name', flex : 1 },
{ field : 'city', text : 'City', flex : 1 }
]
});Configs
10
Configs
10Other
See Keyboard shortcuts for details
Misc
Properties
17
Properties
17Common
Class hierarchy
Other
Found results (as returned by Store#findByField), an array in format { index: x, data: record }
Number of results found
Functions
35
Functions
35Other
Clears and closes QuickFind.
Go to the first hit.
Go to the last hit.
Select the next hit, scrolling it into view. Triggered with [f3] or [ctrl]/[cmd] + [g].
Select the previous hit, scrolling it into view. Triggered with [shift] + [f3] or [shift] + [ctrl]/[cmd] + [g].
Performs a search and highlights hits. If find is empty, QuickFind is closed.
| Parameter | Type | Description |
|---|---|---|
find | String | Text to search for |
columnFieldOrId | String | Column to search |
Configuration
Events
Misc
Events
5
Events
5Event handlers
5
Event handlers
5Typedefs
1
Typedefs
1CSS variables
3
CSS variables
3| Name | Description |
|---|---|
--b-quick-find-header-inset | Inset (position) for the quick find header "text field" |
--b-quick-find-hit-padding | Padding for the quick find hit text highlight |
--b-quick-find-header-badge-color | Color for the quick find hit count indicator shown in the header |