Skip to main content
Version: 4.0.0

InfiniteGridOptions

InfiniteGridOptions

Type: TSInterface

PROPERTYTYPEDESCRIPTION
horizontalboolean

Direction of the scroll movement. (true: horizontal, false: vertical) If horizontal is false, inlinePos is left, inlineSize is width, contentPos is top, and contentSize is height. If horizontal is true, inlinePos is top, inlineSize is height, contentPos is left, and contentSize is width. (default: false)

percentageArray<"position" | "size"> | boolean

Whether to set the css size and position of the item to %. (default: false)

isEqualSizeboolean

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. (default: false)

isConstantSizeboolean

Indicates whether sizes of all card elements does not change, the performance of layout arrangement can be improved. (default: false)

gapnumber

Gap used to create space around items. (default: 5)

attributePrefixstring

The prefix to use element's data attribute. (default: "data-grid-")

resizeDebouncenumber

Debounce time to set in the resize event. (default: 100)

maxResizeDebouncenumber

Maximum time to debounce the resize event(0 is not set). (default: 0)

autoResizeboolean

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. (default: true)

useFitboolean

Whether the resize method should be called automatically after a window resize event. (default: true)

useTransformboolean

Whether to use transform property instead of using left and top css properties.

renderOnPropertyChangeboolean

Whether to automatically render through property change.

preserveUIOnDestroyboolean

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.

externalItemRendererItemRenderer | null

You can set the ItemRenderer directly externally.

externalContainerManagerContainerManager | null

You can set the ContainerManager를 directly externally.

containerboolean | string | 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. (default: false)

containerTagstring

If you create a container, you can set the container's tag. (default: "div")

thresholdnumber

The size of the scrollable area for adding the next group of items. (default: 100)

useRecycleboolean

Whether to show only the DOM of the visible area. (default: true)

gridConstructorGridFunction

Grid class to apply Infinite function.

rendererRenderer | null

class that renders the DOM.