Skip to content

Commit

Permalink
initial instructions for lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
GregKass committed Sep 14, 2017
1 parent 3db9b5c commit aae679d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ myOptions: IMultiSelectOption[] = [
| searchMaxRenderedItems | Used with searchMaxLimit to further limit rendering for optimization. Should be less than searchMaxLimit to take effect | 0 |
| displayAllSelectedText | Display the `allSelected` text when all options are selected | false |
| closeOnClickOutside | Close dropdown when clicked outside | true |
| isLazyLoad | An event, ```onLazyLoad```, triggers on scrolling to a specified distance from the bottom of the dropdown, allowing additional data to load | false |
| loadViewDistance | Distance from bottom of dropdown to trigger lazy load, in units of dropdown viewport height | 1 |
| stopScrollPropagation | Scrolling the dropdown will not overflow to document | false |

### Texts
| Text Item | Description | Default Value |
Expand Down Expand Up @@ -158,6 +161,12 @@ Although this dropdown is designed for multiple selections, a common request is
}
```

### Lazy Loading

This Plunker link demonstrates an implementation of lazy loading: [Lazy loading Plunker](https://plnkr.co/edit/fsZHbth4kzLI79hohcMG?p=preview)

If using search during lazy load, the search term must be supplied to the back end to return the appropriate number of results. Standard inline search will not work, since the front end does not know how many items to load to retrieve the desired number of matches.

### Use model driven forms with ReactiveFormsModule:

```js
Expand Down

0 comments on commit aae679d

Please sign in to comment.