UNPKG

@webcreate/infinite-ajax-scroll

Version:

Turn your existing pagination into infinite scrolling pages with ease

52 lines (49 loc) 999 B
export const APPEND = 'append'; export const APPENDED = 'appended'; export const PREPEND = 'prepend'; export const PREPENDED = 'prepended'; export const BINDED = 'binded'; export const UNBINDED = 'unbinded'; export const HIT = 'hit'; export const TOP = 'top'; export const LOAD = 'load'; export const LOADED = 'loaded'; export const ERROR = 'error'; export const FIRST = 'first'; export const LAST = 'last'; export const NEXT = 'next'; export const NEXTED = 'nexted'; export const PREV = 'prev'; export const PREVED = 'preved'; export const READY = 'ready'; export const SCROLLED = 'scrolled'; export const RESIZED = 'resized'; export const PAGE = 'page'; export const PREFILL = 'prefill'; export const PREFILLED = 'prefilled'; const events = { APPEND, APPENDED, PREPEND, PREPENDED, BINDED, UNBINDED, HIT, TOP, LOAD, LOADED, ERROR, FIRST, LAST, NEXT, NEXTED, PREV, PREVED, READY, SCROLLED, RESIZED, PAGE, PREFILL, PREFILLED, }; export default events;