gov-ht-plugins
## 使用方法
Last updated 2 months ago by yonyougov .
Original npm · Tarball · package.json
$ cnpm install gov-ht-plugins 
SYNC missed versions from official npm registry.

gov-ht-plugins

使用方法

  npm install gov-ht-plugins

引入:

import { CheckSelect } from 'gov-ht-plugins'

plugin列表

ChechSelect

用法:

  new CheckSelect(
    public ht: HandsonTable, // handsontable 实例

    // 传入所有的data,包含小计行数据
    private data: T[],       // 数据
    private col: number = 0, // Checkbox所在列
  )

选择状态:

  // TODO: 增加使用说明
  interface State<T extends DataItemMap> {
    selCount: number;
    deSelCount: number;
    allSelected: boolean;
    revert: boolean;
    selMap: T,
    deSelMap: T,
  }

实例方法方法:

  // 手动刷新数据
  // 可以通过设置 reloadDataFunc 静态方法自动实现
  // 方法参考 [CheckSelect](./src/demo/CheckSelect/index.js) demo
  dataReplaced(data: T[]);

  // 获取CheckSelect的选择状态
  getCheckboxState(): State;

Current Tags

  • 0.1.8-4.4                                ...           latest (2 months ago)

16 Versions

  • 0.1.8-4.4                                ...           2 months ago
  • 0.1.8-4.3                                ...           2 months ago
  • 0.1.8-4.2                                ...           2 months ago
  • 0.1.8-4.1                                ...           2 months ago
  • 0.1.8-4.0                                ...           2 months ago
  • 0.1.7                                ...           2 months ago
  • 0.1.7-3                                ...           2 months ago
  • 0.1.7-2                                ...           2 months ago
  • 0.1.7-1                                ...           2 months ago
  • 0.1.7-0                                ...           2 months ago
  • 0.1.6                                ...           3 months ago
  • 0.1.5                                ...           3 months ago
  • 0.1.4                                ...           3 months ago
  • 0.1.3                                ...           3 months ago
  • 0.1.2                                ...           3 months ago
  • 0.1.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 34
Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |