Datatables - Responsive for Typescript
Datatables - Responsive for Typescript
Hi!
I am currently using Datatables to great effect in my project. Though the need to be mobile friendly is increasing so I was considering using the Responsive extension. However, my project is using Typescript, and it seems there is still no type definition for the extension, correct? I found one made by a third party: _https://www.npmjs.com/package/datatables.responsive.typings_
Though I can't get it to work and looking at the actual file, I find it hard to believe it is complete.
The only code it has is this:
declare namespace DataTables {
interface Settings {
/*
* Responsive extension options
*/
responsive?: boolean | object;
}
}
My question is, did I get something wrong? Is it actually supposed to work but I am just doing it wrong?
If not, do you have any plan of making a type definition for Responsive?
Kind regards,
Björn
This question has an accepted answers - jump to answer
Answers
Correct, there are no first party typings for DataTables and its extensions at the moment.
You are correct, that file isn't complete. I guess the basic operation is fine, but there "object" part could be singificantly expanded. This is the list of options for Responsive, and there are API methods as well.
Time allowing, yes I would like to.
Allan
Thank you for your hasty reply Allan.