2022-07-04 10:31:58 +00:00
|
|
|
# Consul::Peer::SearchBar
|
|
|
|
|
|
|
|
Searchbar tailored for searching Peers. Follows our more generic
|
|
|
|
'*::SearchBar' component interface.
|
|
|
|
|
|
|
|
```hbs preview-template
|
|
|
|
<Consul::Peer::SearchBar
|
|
|
|
@search={{this.search}}
|
|
|
|
@onsearch={{fn (mut this.search) value="target.value"}}
|
|
|
|
|
2022-07-14 10:22:45 +00:00
|
|
|
@sort={{hash
|
|
|
|
value='State:asc'
|
2022-07-04 10:31:58 +00:00
|
|
|
change=(noop)
|
|
|
|
}}
|
|
|
|
|
|
|
|
@filter={{hash
|
2022-07-14 10:22:45 +00:00
|
|
|
state=(hash
|
|
|
|
value=(array "PENDING")
|
|
|
|
change=(noop)
|
|
|
|
)
|
2022-07-04 10:31:58 +00:00
|
|
|
searchproperty=(hash
|
|
|
|
value=(array)
|
|
|
|
change=(noop)
|
|
|
|
default=(array)
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
```
|
|
|
|
|
|
|
|
## See
|
|
|
|
|
|
|
|
- [Template Source Code](./index.hbs)
|
|
|
|
|
|
|
|
---
|