找回密码
 立即注册

QQ登录

只需一步,快速开始

AlexZ 讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2021-3-2 15:53  /   查看:3190  /  回复:0
在之前的版本,如果设置了底部冻结行,同时,表格中的数据行数比较少时,冻结行和数据行中间会有空白区域,在新版中,提供了一个选项开关来决定底部冻结行的位置,如下图所示:

#在现有版本中,如果数据行足够多,冻结行会在最下部显示
original1.png

#在现有版本中,如果数据行比较少
original2.png

#在即将发布的新版本中,通过选项开关,冻结行会显示在数据行的下方
withoutSpace.png

API 如下:
  1. ///* function frozenTrailingRowCount(rowCount?: number, stickToEdge?: boolean): any
  2. /**
  3. * Gets or sets the number of trailing frozen rows of the sheet.
  4. * @param {number} [rowCount] The number of rows to freeze at the bottom of the sheet.
  5. * @param {boolean} [stickToEdge] Whether the frozenTrailingRow stick to the bottom edge of viewport area. By default is true.
  6. * @returns {number|GC.Spread.Sheets.Worksheet} If no value is set, returns the number of trailing frozen rows; otherwise, returns the worksheet.
  7. * @example
  8. * sheet.frozenTrailingRowCount(1, false);
  9. */
  10. frozenTrailingRowCount(rowCount ? : number, stickToEdge ? : boolean): any

  11. ///* function frozenTrailingColumnCount(colCount?: number, stickToEdge?: boolean): any
  12. /**
  13. * Gets or sets the number of trailing frozen columns of the sheet.
  14. * @param {number} [colCount] The number of columns to freeze at the right side of the sheet.
  15. * @param {boolean} [stickToEdge] Whether the frozenTrailingColumn stick to the right edge of viewport area. By default is true.
  16. * @returns {number|GC.Spread.Sheets.Worksheet} If no value is set, returns the number of trailing frozen columns; otherwise, returns the worksheet.
  17. * @example
  18. * sheet.frozenTrailingColumnCount(1, false);
  19. */
  20. frozenTrailingColumnCount(colCount ? : number, stickToEdge ? : boolean): any
复制代码


0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部