Search component
The Search component allows searching through the grid records. It is a generic tool for filtering content that aggregates all other filter elements.
Options
Option
Description
Type
Default Value
labelThe search field label.
String
$t('Keyword')placeholderValue displayed when the search field is empty.
String
'Search by keyword'statefull.valueDefines that
value property is automatically saved in the configured storage if a change.Boolean
truetemplatePath to the component’s
.html template.String
ui/grid/search/searchSource files
Extends UiElement:
- app/code/Magento/Ui/view/base/web/js/grid/search/search.js
- app/code/Magento/Ui/view/base/web/templates/grid/search/search.html
Examples
Integration
This is an example of how the Search component integrates with the Listing component:
<listing>
...
<listingToolbar>
...
<filterSearch name="fulltext"/>
</listingToolbar>
...
</listing>
Result