본문으로 건너뛰기
버전: 4.11.1

FrameInfiniteGridOptions

Type: TSInterface

PROPERTYTYPEDEFAULTDESCRIPTION
horizontalbooleanfalse스크롤 이동 방향. (true: 가로방향, false: 세로방향) horizontal이 false 면 inlinePos는 left, inlineSize는 width, contentPos는 top, contentSize는 height다. horizontal이 true면 inlinePos는 top, inlineSize는 height, contentPos는 left, contentSize는 width이다.
percentageArray<"position" | "size"> | booleanfalseitem의 css size와 position를 %로 설정할지 여부.
isEqualSizebooleanfalse카드 엘리먼트의 크기가 동일한지 여부. 배치될 카드 엘리먼트의 크기가 모두 동일할 때 이 옵션을 'true'로 설정하면 레이아웃 배치 성능을 높일 수 있다.
isConstantSizebooleanfalse모든 카드 엘리먼트의 크기가 불변일 때 이 옵션을 'true'로 설정하면 레이아웃 배치 성능을 높일 수 있다.
gapnumber5아이템들 사이의 공간.
attributePrefixstring"data-grid-"엘리먼트의 데이타 속성에 사용할 접두사.
resizeDebouncenumber100리사이즈 이벤트에 설정할 디바운스 시간.(단위: ms)
maxResizeDebouncenumber0리사이즈 이벤트를 디바운스할 수 있는 최대 시간. (0은 미설정이다)
autoResizebooleantruewindow의 resize 이벤트 이후 자동으로 resize()메소드를 호출할지의 여부.
useFitbooleantrue렌더링시 상단이 비어있을 때 아웃라인을 0으로 이동시킬지 여부. 하지만 상단보다 넘치는 경우 아웃라인을 0으로 강제 이동한다.
useTransformbooleanfalseleft, top css 속성 쓰는 대신 transform 속성을 사용할지 여부.
renderOnPropertyChangebooleantrueproperty의 변화를 통해 자동으로 render를 할지 여부.
preserveUIOnDestroybooleanfalsedestroy 시 기존 컨테이너, 아이템의 UI를 보존할지 여부.
defaultDirection"start" | "end""end"render옵션에서 direction을 미설정시의 기본 방향값.
outlineLengthnumber0outline의 개수. 아웃라인의 개수가 0이라면 grid의 종류에 따라 계산이 된다.
outlineSizenumber0outline의 사이즈. 만약 outline의 사이즈가 0이면, grid의 종류에 따라 계산이 된다.
useRoundedSizebooleantrue사이즈를 반올림된 사이즈(offsetWidth, offsetHeight)로 가져올지 여부. container에 transform이 적용되어 있다면 true로 설정해라. false면 getBoundingClientRect를 통해 사이즈를 가져온다.
useResizeObserverbooleanfalseautoResize 옵션 사용시 container의 사이즈 변화 감지를 위해 ResizeObserver 이벤트를 사용할지 여부.
observeChildrenbooleanfalseuseResizeObserver옵션을 사용한다면 children의 사이즈 변화 감지 여부.
externalItemRendererItemRenderer | null외부에서 직접 ItemRenderer를 설정할 수 있다.
externalContainerManagerContainerManager | null외부에서 직접 ContainerManager를 설정할 수 있다.
framenumber[][][]Grid의 모양. 2d 배열([contentPos][inlinePos])로 아이템의 모양과 순서를 설정할 수 있다. 숫자로 배열을 채운만큼 아이템을 배치할 수 있으며 0과 공백은 빈 공간이다. 아이템들의 순서는 배열을 채운 숫자값의 오름차순대로 배치가 된다. (default: [])
useFrameFillbooleantrue다음 프레임이 전 프레임에 이어 붙일 수 있는지 있는지 확인한다.
rectSizenumber | {inlineSize: number, contentSize: number}01x1 직사각형 크기. 0이면 frame의 column의 개수에 의해 결정된다.
horizontalbooleanfalse스크롤 이동 방향. (true: 가로방향, false: 세로방향) horizontal이 false 면 inlinePos는 left, inlineSize는 width, contentPos는 top, contentSize는 height다. horizontal이 true면 inlinePos는 top, inlineSize는 height, contentPos는 left, contentSize는 width이다.
percentageArray<"position" | "size"> | booleanfalseitem의 css size와 position를 %로 설정할지 여부.
isEqualSizebooleanfalse카드 엘리먼트의 크기가 동일한지 여부. 배치될 카드 엘리먼트의 크기가 모두 동일할 때 이 옵션을 'true'로 설정하면 레이아웃 배치 성능을 높일 수 있다.
isConstantSizebooleanfalse모든 카드 엘리먼트의 크기가 불변일 때 이 옵션을 'true'로 설정하면 레이아웃 배치 성능을 높일 수 있다.
gapnumber5아이템들 사이의 공간.
attributePrefixstring"data-grid-"엘리먼트의 데이타 속성에 사용할 접두사.
resizeDebouncenumber100리사이즈 이벤트에 설정할 디바운스 시간.(단위: ms)
maxResizeDebouncenumber0리사이즈 이벤트를 디바운스할 수 있는 최대 시간. (0은 미설정이다)
autoResizebooleantruewindow의 resize 이벤트 이후 자동으로 resize()메소드를 호출할지의 여부.
useFitbooleantrue렌더링시 상단이 비어있을 때 아웃라인을 0으로 이동시킬지 여부. 하지만 상단보다 넘치는 경우 아웃라인을 0으로 강제 이동한다.
useTransformbooleanfalseleft, top css 속성 쓰는 대신 transform 속성을 사용할지 여부.
renderOnPropertyChangebooleantrueproperty의 변화를 통해 자동으로 render를 할지 여부.
preserveUIOnDestroybooleanfalsedestroy 시 기존 컨테이너, 아이템의 UI를 보존할지 여부.
defaultDirection"start" | "end""end"render옵션에서 direction을 미설정시의 기본 방향값.
outlineLengthnumber0outline의 개수. 아웃라인의 개수가 0이라면 grid의 종류에 따라 계산이 된다.
outlineSizenumber0outline의 사이즈. 만약 outline의 사이즈가 0이면, grid의 종류에 따라 계산이 된다.
useRoundedSizebooleantrue사이즈를 반올림된 사이즈(offsetWidth, offsetHeight)로 가져올지 여부. container에 transform이 적용되어 있다면 true로 설정해라. false면 getBoundingClientRect를 통해 사이즈를 가져온다.
useResizeObserverbooleanfalseautoResize 옵션 사용시 container의 사이즈 변화 감지를 위해 ResizeObserver 이벤트를 사용할지 여부.
observeChildrenbooleanfalseuseResizeObserver옵션을 사용한다면 children의 사이즈 변화 감지 여부.
externalItemRendererItemRenderer | null외부에서 직접 ItemRenderer를 설정할 수 있다.
externalContainerManagerContainerManager | null외부에서 직접 ContainerManager를 설정할 수 있다.
containerboolean | HTMLElement | string | Ref<HTMLElement>falsecontainer를 적용할 대상. false면 자기 자신, true면 container를 생성. string 또는 HTMLElement는 직접 대상을 지정.
containerTagstring"div"container를 생성한다면 container의 tag를 정할 수 있다.
thresholdnumber100다음 아이템 그룹을 추가하기 위한 스크롤 영역의 크기.
useRecyclebooleantrue보이는 영역의 DOM만 보여줄지 여부.
scrollContainerHTMLElement | string | Ref<HTMLElement> | nullscrollContainer를 직접 정할 수 있다. 이 경우 container는 wrapper 자기 자신이 된다.
gridConstructorGridFunctionInfinite 기능을 적용할 Grid 클래스.
appliedItemChecker(item: InfiniteGridItem, grid: Grid) => boolean렌더링 되지 않는 아이템를 Grid에 포함시킬지 체크하는 함수.
rendererRenderer | nullDOM을 렌더하는 클래스.