Skip to content

Commit

Permalink
docs(Autocomplete): update docs about the debounce method (#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored and langz committed May 31, 2023
1 parent 1deed14 commit 2502070
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import {

### Async usage, dynamically update data during typing

This example simulates server delay with a timeout and - if it gets debounced, we cancel the timeout.<br /><br />Also, you may consider using `disable_filter` if you have a backend doing the search operation.
This example simulates server delay with a timeout and - if it gets debounced, we cancel the timeout. Read more about the [debounce method](/uilib/components/autocomplete/events/#methods).

Also, you may consider using `disable_filter` if you have a backend doing the search operation.

<AutocompleteDynamicallyUpdatedData />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

You can manipulate the used data dynamically, either by changing the `data` property or during user events like `on_type` or `on_focus`. The following properties and methods are there to use:

**Methods**
### Methods

- `updateData` replace all data entries.
- `emptyData` remove all data entries.
Expand All @@ -15,13 +15,13 @@ You can manipulate the used data dynamically, either by changing the `data` prop
- `setHidden` hides the [DrawerList](/uilib/components/fragments/drawer-list).
- `showAllItems` shows all [DrawerList](/uilib/components/fragments/drawer-list) items.
- `setMode` switch the mode during runtime.
- `debounce` a debounce method with a cancel invocation method on repeating calls
- `debounce` a debounce method with a cancel invocation method on repeating calls. There is [more documentation](/uilib/helpers/functions/#debounce) about this method.

**Properties**
### Properties

- `dataList` contains all the data entries

**Example**
### Example

```jsx
<Autocomplete
Expand Down

0 comments on commit 2502070

Please sign in to comment.