UNPKG

@egjs/react-infinitegrid

Version:

A React component that can arrange items infinitely according to the type of grids

27 lines (22 loc) 585 B
export const REACT_INFINITEGRID_EVENT_MAP = { "onContentError": "contentError", "onRenderComplete": "renderComplete", "onRequestAppend": "requestAppend", "onRequestPrepend": "requestPrepend", "onChangeScroll": "changeScroll", } as const; export const REACT_INFINITEGRID_EVENTS: string[] = []; for (const name in REACT_INFINITEGRID_EVENT_MAP) { REACT_INFINITEGRID_EVENTS.push(name); } export const REACT_INFINITEGRID_PROPS = [ "tag", "placeholder", "status", "useFirstRender", "loading", "itemBy", "groupBy", "infoBy", ...REACT_INFINITEGRID_EVENTS, ];