Question

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).

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top