Browse Source

docs: describe how search is done using ListService

pull/3956/head
Arman Ozak 6 years ago
parent
commit
7141295830
  1. 10
      docs/en/UI/Angular/List-Service.md

10
docs/en/UI/Angular/List-Service.md

@ -153,3 +153,13 @@ this.bookService.createByInput(form.value)
// Other subscription logic here
})
```
## How to Implement Server-Side Search in a Table
`ListService` exposes a `filter` property that will trigger a request with the current query and the given search string. All you need to do is to bind it to an input element with two-way binding.
```html
<!-- simplified representation -->
<input type="text" name="search" [(ngModel)]="list.filter">
```

Loading…
Cancel
Save