我正在使用Angular 7和ag-Grid社区版v19.x,并在列def中使用“ sortable”属性
this.columnDefs = [
{headerName: 'First Name ', field: 'firstName', sortable: true, filter: true },
{headerName: 'Last Name', field: 'lastName', sortable: true, filter: true },
{headerName: 'DOB', width: 150, field: 'dob', sortable: false, filter: false},
{headerName: 'Document', width: 400, field: 'documentName', sortable: true, filter: true},
{headerName: 'Reference', field: 'reference'}
];
但是,当我运行该应用程序时,控制台会显示以下警告
ag-grid: invalid colDef property 'sortable' did you mean any of these: