Pregunta

This seems like a simple question, but I'm not how to go about it.

I'm using ludo's great jquery treetable plugin, however, I want to be able destroy it on call.

Does anyone know how to destroy an instance of this (at least on the javascript side?)

Here are some examples (I'm using the basic expandable option).

¿Fue útil?

Solución

Okay, so it's really really simple:

The method is:

$('.element').treetable('destroy');

Unfortunately, I had to find this out through trial and error, as it's documented nowhere (I can find).

Hope this helps somebody.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top