I'm using the JQuery plugin colResizable (@alvaro-prieto) to create re-sizable tables in my application and have two individual table objects (same column count). However, I am looking for a way to resize the two tables at the same time (e.g. Updating Table 1's columns also updates Table 2's columns synchronously). See the following JSFiddle for an interactive implementation of the plugin.
$("#sample").colResizable({liveDrag:true});
$("#sample2").colResizable({
liveDrag:true,
gripInnerHtml:"<div class='grip'></div>",
draggingClass:"dragging" });
I've noticed you can specify a callback function such as onDrag
that consistently fires when 'dragging' a column. While this helps me get closer to a solution, I am still unaware of a concrete method to synchronize the tables' updates.
I am looking to avoid modifying the source if possible and find a suitable JS/JQ solution.