API REFERENCE

GridColumnRef

GridColumnRef의 필드와 허용 값, 이 타입을 사용하는 API입니다.

타입 정의

물음표(?)는 선택 항목이고 readonly는 직접 변경하지 않는 값입니다. 유니온(|)은 허용된 형태 중 하나를 뜻합니다. 함수는 해당 시점에 Grid가 호출할 콜백입니다.

typescript
export interface GridColumnRef<
  TData = GridData,
  TValue = unknown,
  TContext = unknown,
> extends GridLiveRef<TData, TValue> {
  readonly id: string;
  getDefinition(): Readonly<ColumnDef<TData, TValue, TContext>> | null;
  getActualWidth(): number | null;
  isVisible(): boolean;
  getPinned(): 'left' | 'right' | null;
  getSort(): GridColumnSortState | null;
  getAggFunc(): string | null;
  isPivotActive(): boolean;
  getParent(): GridColumnGroupRef<TData, TContext> | null;
  setWidth(width: number): Promise<boolean>;
  setVisible(visible: boolean): Promise<boolean>;
  setPinned(side: 'left' | 'right' | null): Promise<boolean>;
  setSort(direction: 'asc' | 'desc' | null, options?: { multi?: boolean }): Promise<boolean>;
  setAggFunc(name: string | null): Promise<boolean>;
  getFilterModel(): Promise<unknown>;
  setFilterModel(model: unknown | null): Promise<boolean>;
}

이 타입을 사용하는 API

이 타입을 포함하는 계약