fixedColumns() not resolvable with 3.1.1
fixedColumns() not resolvable with 3.1.1
sebastianbarth
Posts: 61Questions: 14Answers: 0
Hi again Allan,
Using Datatables 3.1.1 I have trouble accessing the fixedColumns() method (no problem with DT 2.3.8).
"datatables.net": "3.1.1"
"datatables.net-dt": "3.1.1"
"datatables.net-fixedcolumns": "6.1.0"
"datatables.net-scroller": "3.1.0"
"datatables.net-scroller-dt": "3.1.0"
...
"typescript": "6.0.3"
import 'datatables.net-fixedcolumns';
const dataTable: Api<BaseTableRowData> = ...;
dataTable.fixedColumns().left(columnCount); // Fails with following error
TS2339: Property fixedColumns does not exist on type Api<BaseTableRowData>
Anything wrong with my setup or did the augmentation of the API by the fixed column plugin break?
Any idea?
I use Intellij Ultimate (contains Webstorm).
Cheers
Sebastian
Answers
Hi Sebastian,
You are absolutely right - that's a bug on my part. I hadn't correctly extended the DataTables Api interface. I've corrected that and I'll do a patch release, possibly tomorrow all being well to address this. I've checked over the other extensions and they are all fine - just FixedColumns!
Allan
Awesome, thanks!
I just noticed that it is not necessary to have both, the normal and "-dt" dependencies.