Options
All
  • Public
  • Public/Protected
  • All
Menu

分页控制器

Hierarchy

Implements

Index

Constructors

constructor

Properties

whiteBoard

whiteBoard: WhiteBoard

Static controllerName

controllerName: string = ...

Accessors

boardList

currentPage

  • get currentPage(): number

isFirstPage

  • get isFirstPage(): boolean

isLastPage

  • get isLastPage(): boolean

totalPage

  • get totalPage(): number

Methods

addPage

changeCurrentPage

getBoardById

  • getBoardById(boardId: string): undefined | Board
  • 根据画笔 ID 获取画板

    Parameters

    • boardId: string

      画板 ID

    Returns undefined | Board

nextPage

  • 切换到下一页

    api
    description

    注意该 api 的使用场景为用户主动进行下一页操作

    Parameters

    • loop: boolean = true

      是否循环切页,默认:true

    Returns PageController

prePage

  • 切换到上一页

    api
    description

    注意该 api 的使用场景为用户主动进行上一页操作

    Parameters

    • loop: boolean = true

      是否循环切页,默认:true

    Returns PageController

resetPage

  • 重置分页,注意该 api 的调用场景需要为被动调用,不会触发 custom 事件

    api

    Parameters

    • total: number

      总页数

    • currentPage: number

      当前页

    Returns PageController