- Selector
- bp-search
Inputs
Input | Type | Description | Notes |
---|---|---|---|
label | string | The search input's label. | Required. Default is "Search". |
placeholder | string | The search input's placeholder. | Required. Default is "Search". |
isSearching | boolean | Determines whether or not a search is in progress. | Default is "false". |
bpID | string | The value for the search's id attribute. | Ids must only be used once per page. Ids should be camelCase, e.g.: #myId. See identifiers. |
Outputs
Output | Description |
---|---|
search | Emits an event on click of the search icon button or on press of enter. |
clearSearch | Emits an event on click of the clear icon button. |
searchQuery | A two-way data binding for reading and writing the search input's value. |
Identifiers
ID | Description |
---|---|
bpID | The unique identifier for the search component. |
bpID + 'Clear' | The unique identifier for the clear button. |
bpID + 'Search' | The unique identifier for the search button. |