Just starting to use SlickGrid and it doesn't seem to initiate itself like a normal jquery widget/plugin does where you can access the instance attached to the element by just doing $(element).slickgrid() .
Is there a way to get a hold of the existing instance, without obviously holding onto it when you create it? Looking through the code it didn't seem like it, but wasn't sure if anybody else had run into this.
Not exactly sure why they took dependencies on jquery but decided to have a custom initialization.
Could be as simple as just wrapping it in a jqueryui widget.
You could always use jQuery's data function to save a reference to the slick grid instance.
For example:
var grid = new Slick.Grid(container,data,columns,options);
$(element).data('slickgrid', grid);
And you can access it using:
$(element).data('slickgrid');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With