Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #110

Merged
merged 1 commit into from
Mar 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ A boolean dictating whether or not to further reduce the `maxVisibleItems` value

By default, EasyDropDown will reduce the number of visible items until at least 10px of clearspace is created between the nearest viewport edge and the bottom or top of the dropdown body. This prevents the need to scroll the window to view the dropdown body when a collision occurs.

You may wish to disable this option if your select UI will always appear within a collision zone, and you do not wish to reduce the number of visible options beyond the defined `maxVisibleOptions` value.
You may wish to disable this option if your select UI will always appear within a collision zone, and you do not wish to reduce the number of visible options beyond the defined `maxVisibleItems` value.

##### Example: Disabling `clampMaxVisibleItems`

Expand Down Expand Up @@ -575,12 +575,12 @@ An integer dictating the maximum visible options that should be visible in the d

It may be desirable to increase this value when dealing with long lists and when we can be sure that collision with the viewport edge will not occur (if collision does occur the value will be clamped anyway, providing `clampMaxVisibleItems` is set).

##### Example: Changing `maxVisibleOptions`
##### Example: Changing `maxVisibleItems`

```js
const edd = easydropdown(selectElement, {
behavior: {
maxVisibleOptions: 25
maxVisibleItems: 25
}
});
```
Expand Down Expand Up @@ -866,4 +866,4 @@ There are many UI libraries aimed at solving this problem specifically, which ty

---

© 2018 Patrick Kunka / KunkaLabs Ltd
© 2018 Patrick Kunka / KunkaLabs Ltd