.maxgrid(options) creates a grid in every matched element (again on the same element: setOptions), returns the jQuery object;
.maxgrid('api') returns the grid API of the first element (undefined when there is none);
.maxgrid('destroy') removes the grid and its listeners (done automatically when jQuery removes the element: .remove(), .empty(), .html(...)).
Grid events arrive as jQuery events named maxgrid:<event> with the payload as the second handler argument.
Adds
$.fn.maxgrid:.maxgrid(options)creates a grid in every matched element (again on the same element:setOptions), returns the jQuery object;.maxgrid('api')returns the grid API of the first element (undefinedwhen there is none);.maxgrid('destroy')removes the grid and its listeners (done automatically when jQuery removes the element:.remove(),.empty(),.html(...)). Grid events arrive as jQuery events namedmaxgrid:<event>with the payload as the second handler argument.