We build the lib into two components. There's the jQuery-dependent one that just powers the UI interaction and translates cols and rows into pixels for DOM elements. Then there's the main logic, which is an agnostic class that implements all the grid positioning and collision management logic. This makes it possible to calculate new grid positions on the server-side. Same with running unit tests.
Or just build jQuery UI with only the draggable component.
Either way it's just two API calls in the demo page, the buttons aren't part of the lib itself
http://cl.ly/image/1E0A0z2C0x0b -> http://cl.ly/image/102E232Z443j
PS. We have some docs for these methods https://github.com/uberVU/grid#resizegridrows
Take a look at the project README for more info: https://github.com/uberVU/grid/blob/master/README.md