grid-group-column-provider.ts 631 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import {
  IGridColumnProvider,
  GridController,
  GridGroupColumnController,
} from '@ibiz-template/controller';
import { GridGroupColumnModel } from '@ibiz-template/model';
/**
 * 表格分组列适配器
 *
 * @export
 * @class GridGroupColumnProvider
 * @implements {IGridColumnProvider}
 */
export class GridGroupColumnProvider implements IGridColumnProvider {
  component: string = '';

  async createController(
    columnModel: GridGroupColumnModel,
    grid: GridController,
  ): Promise<GridGroupColumnController> {
    const c = new GridGroupColumnController(columnModel, grid);
    await c.init();
    return c;
  }
}