JustifiedInfiniteGridOptions
Type: TSInterface
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
horizontal | boolean | Direction of the scroll movement. (true: horizontal, false: vertical) If horizontal is false, |
percentage | Array<"position" | "size"> | boolean | Whether to set the css size and position of the item to %. |
isEqualSize | boolean | Indicates whether sizes of all card elements are equal to one another. If sizes of card elements to be arranged are all equal and this option is set to "true", the performance of layout arrangement can be improved. |
isConstantSize | boolean | Indicates whether sizes of all card elements does not change, the performance of layout arrangement can be improved. |
gap | number | Gap used to create space around items. |
attributePrefix | string | The prefix to use element's data attribute. |
resizeDebounce | number | Debounce time to set in the resize event. (unit: ms) |
maxResizeDebounce | number | Maximum time to debounce the resize event. (0 is not set) |
autoResize | boolean | Whether the resize method should be called automatically after a window resize event. |
useFit | boolean | Whether to move the outline to 0 when the top is empty when rendering. However, if it overflows above the top, the outline is forced to 0. |
useTransform | boolean | Whether to use transform property instead of using left and top css properties. |
renderOnPropertyChange | boolean | Whether to automatically render through property change. |
preserveUIOnDestroy | boolean | Whether to preserve the UI of the existing container or item when destroying. |
defaultDirection | "start" | "end" | The default direction value when direction is not set in the render option. |
outlineLength | number | The number of outlines. If the number of outlines is 0, it is calculated according to the type of grid. |
outlineSize | number | The size of the outline. If the outline size is 0, it is calculated according to the grid type. |
useRoundedSize | boolean | Whether to get the size as rounded size(offsetWidth, offsetHeight). Set to true if transform is applied to the container. If false, get the size through getBoundingClientRect. |
useResizeObserver | boolean | Whether to use ResizeObserver event to detect container size change when |
observeChildren | boolean | Whether to detect size change of children if useResizeObserver option is used. |
externalItemRenderer | ItemRenderer | null | You can set the ItemRenderer directly externally. |
externalContainerManager | ContainerManager | null | You can set the ContainerManager directly externally. |
columnRange | number | number[] | The minimum and maximum number of items per line. (default: [1, 8]) |
rowRange | number | number[] | The minimum and maximum number of rows in a group, 0 is not set. (default: 0) |
sizeRange | number | number[] | The minimum and maximum size by which the item is adjusted. If it is not calculated, it may deviate from the minimum and maximum sizes. (default: [0, Infinity]) |
displayedRow | number | Maximum number of rows to be counted for container size. You can hide it on the screen by setting overflow: hidden. -1 is not set. (default: -1) |
isCroppedSize | boolean | Whether to crop when the row size is out of sizeRange. If set to true, this ratio can be broken. (default: false) |
horizontal | boolean | Direction of the scroll movement. (true: horizontal, false: vertical) If horizontal is false, |
percentage | Array<"position" | "size"> | boolean | Whether to set the css size and position of the item to %. |
isEqualSize | boolean | Indicates whether sizes of all card elements are equal to one another. If sizes of card elements to be arranged are all equal and this option is set to "true", the performance of layout arrangement can be improved. |
isConstantSize | boolean | Indicates whether sizes of all card elements does not change, the performance of layout arrangement can be improved. |
gap | number | Gap used to create space around items. |
attributePrefix | string | The prefix to use element's data attribute. |
resizeDebounce | number | Debounce time to set in the resize event. (unit: ms) |
maxResizeDebounce | number | Maximum time to debounce the resize event. (0 is not set) |
autoResize | boolean | Whether the resize method should be called automatically after a window resize event. |
useFit | boolean | Whether to move the outline to 0 when the top is empty when rendering. However, if it overflows above the top, the outline is forced to 0. |
useTransform | boolean | Whether to use transform property instead of using left and top css properties. |
renderOnPropertyChange | boolean | Whether to automatically render through property change. |
preserveUIOnDestroy | boolean | Whether to preserve the UI of the existing container or item when destroying. |
defaultDirection | "start" | "end" | The default direction value when direction is not set in the render option. |
outlineLength | number | The number of outlines. If the number of outlines is 0, it is calculated according to the type of grid. |
outlineSize | number | The size of the outline. If the outline size is 0, it is calculated according to the grid type. |
useRoundedSize | boolean | Whether to get the size as rounded size(offsetWidth, offsetHeight). Set to true if transform is applied to the container. If false, get the size through getBoundingClientRect. |
useResizeObserver | boolean | Whether to use ResizeObserver event to detect container size change when |
observeChildren | boolean | Whether to detect size change of children if useResizeObserver option is used. |
externalItemRenderer | ItemRenderer | null | You can set the ItemRenderer directly externally. |
externalContainerManager | ContainerManager | null | You can set the ContainerManager directly externally. |
container | boolean | HTMLElement | string | Ref<HTMLElement> | The target to which the container is applied. If false, create itself, if true, create container. A string or HTMLElement specifies the target directly. |
containerTag | string | If you create a container, you can set the container's tag. |
threshold | number | The size of the scrollable area for adding the next group of items. |
useRecycle | boolean | Whether to show only the DOM of the visible area. |
scrollContainer | HTMLElement | string | Ref<HTMLElement> | null | You can set the scrollContainer directly. In this case, the container becomes the wrapper itself. |
gridConstructor | GridFunction | Grid class to apply Infinite function. |
renderer | Renderer | null | class that renders the DOM. |