import { GridHelper } from './../resources/elements/ag-grid/grid-helper';
import { ColDef } from 'ag-grid-community';
import { ListViewModelBase } from './list-view-model-base';
import { SelectAllHeaderComponent } from "./list-view-model-base";
import * as breeze from 'breeze-client';

/**
 * @deprecated The method should not be used, use GridHelper.getSelectedColDef() instead
 */
export function getSelectedColDef<T extends breeze.Entity>(VM: ListViewModelBase<T>, minMaxWidth: number = 40): ColDef {
    return GridHelper.getSelectedColDef(VM, {
        maxWidth: minMaxWidth,
        minWidth: minMaxWidth,
    });
}