Skip to content

Migrating from v2.0 to v3.0

Son Chan Uk edited this page Dec 18, 2017 · 9 revisions

InfiniteGrid 3.0.0 rewrote 2.0.0 to provide various layouts. this new version of InfiniteGrid had following features:

  1. provides various layouts : GridLayout, JustifiedLayout, FrameLayout, SquareLayout, PackingLayout, ...
  2. provides horizontal and vertical directions.
  • provides horizontal option.
  1. improves usability.
  • No more requests. It is caching previous added items.
  • No more count option is required. It is automatically adjusted internally according to the size of the screen.

BREAKING CHANGES

1. Removed

Options
  • count
Method
  • isRecycling
  • getTopElement
  • getBottomElement
Event property
  • croppedCount and distance properties on layoutComplete event.
  • scrollTop on append and prepend events.

2. Changed

  • getGroupKeys method return groupkey information.
  • append/prepend methods return this.
  • isProcessing methods return loading state.

New

Options

  • useRecycle
  • horizontal

Method

  • setLayout
  • getItems
  • setLoadingBar
  • getLoadingBar
  • startLoading
  • endLoading

Event

  • added change event
  • added scrollPos, orgScrollPos, isScroll properties on layoutComplete event.