How to use @better-scroll/pull-up - 4 common examples

To help you get started, we’ve selected a few @better-scroll/pull-up examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ustbhuangyi / better-scroll / packages / pull-up / src / __tests__ / index.spec.ts View on Github external
it('should proxy properties to BScroll instance', () => {
    // given when
    pullup = new PullUp(bscroll)
    // then
    expect(bscroll.proxy).toBeCalledWith([
      {
        key: 'finishPullUp',
        sourceKey: 'plugins.pullUpLoad.finish'
      },
      {
        key: 'openPullUp',
        sourceKey: 'plugins.pullUpLoad.open'
      },
      {
        key: 'closePullUp',
        sourceKey: 'plugins.pullUpLoad.close'
      }
    ])
  })
github ustbhuangyi / better-scroll / packages / pull-up / src / __tests__ / index.spec.ts View on Github external
beforeEach(() => {
      // given
      bscroll.options.pullUpLoad = { threshold: THRESHOLD }
      pullup = new PullUp(bscroll)
      bscroll.on('pullingUp', pullingUpHandler)
    })
github ustbhuangyi / better-scroll / packages / pull-up / src / __tests__ / index.spec.ts View on Github external
beforeEach(() => {
      // given
      bscroll.options.pullUpLoad = { threshold: THRESHOLD }
      pullup = new PullUp(bscroll)
      bscroll.on('pullingUp', pullingUpHandler)
    })
github ustbhuangyi / better-scroll / packages / pull-up / src / __tests__ / index.spec.ts View on Github external
beforeEach(() => {
      // given
      bscroll.options.pullUpLoad = { threshold: THRESHOLD }
      pullup = new PullUp(bscroll)
      bscroll.on('pullingUp', pullingUpHandler)
    })

@better-scroll/pull-up

pull up to load more data

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis

Popular @better-scroll/pull-up functions