You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 5, 2023. It is now read-only.
|`tag`| The HTML tag used as container element. Default value is `div`|`string`| Any valid HTML tag |
36
-
|`probeTag`| The HTML tag used as probe element. Default value is `div`|`string`| Any valid HTML tag |
37
-
|`length`| The number of items in the list |`number`| Required, an integer greater than or equal to 0 |
38
-
|`pageProvider`| The callback that returns a page of items as a promise. `pageNumber` start with 0 |`(pageNumber: number, pageSize: number) => Promise<unknown[]>`| Required |
39
-
|`pageProviderDebounceTime`| Debounce window in milliseconds on the calls to `pageProvider`|`number`| Optional, an integer greater than or equal to 0 |
40
-
|`pageSize`| The number of items in a page from the item provider (e.g. a backend API) |`number`| Required, an integer greater than or equal to 1 |
41
-
|`scrollTo`| Scroll to a specific item by index |`number`| Optional, an integer from 0 to the `length` prop - 1 |
42
-
|`scrollBehavior`| The behavior of `scrollTo`. Default value is `smooth`|`smooth`|`auto`| Optional, a string to be `smooth` or `auto`|
|`length`| The number of items in the list |`number`| Required, an integer greater than or equal to 0 |
36
+
|`pageProvider`| The callback that returns a page of items as a promise. `pageNumber` start with 0 |`(pageNumber: number, pageSize: number) => Promise<unknown[]>`| Required |
37
+
|`pageSize`| The number of items in a page from the item provider (e.g. a backend API) |`number`| Required, an integer greater than or equal to 1 |
38
+
|`pageProviderDebounceTime`| Debounce window in milliseconds on the calls to `pageProvider`|`number`| Optional, an integer greater than or equal to 0, defaults to `0`|
39
+
|`probeTag`| The HTML tag used as probe element. Default value is `div`|`string`| Optional, any valid HTML tag, defaults to `div`|
40
+
|`respectScrollToOnResize`| Snap to the position set by `scrollTo` when the grid container is resized |`boolean`| Optional, defaults to `false`|
41
+
|`scrollBehavior`| The behavior of `scrollTo`. Default value is `smooth`|`smooth`|`auto`| Optional, a string to be `smooth` or `auto`, defaults to `smooth`|
42
+
|`scrollTo`| Scroll to a specific item by index |`number`| Optional, an integer from 0 to the `length` prop - 1, defaults to 0 |
43
+
|`tag`| The HTML tag used as container element. Default value is `div`|`string`| Optional, any valid HTML tag, defaults to `div`|
0 commit comments