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

Était-ce utile?

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top