Resize tables with Jquery or Javascript with dragable -
example on jfiddle doesn't work, need help.
i have 3 tables on page. each table represents different information. user may want see minimal amount of 1 or 2 tables while maximizing size of table.
the tables utilize set scrollable. allows overflow still viewed. when resizing tables headers must still viewable, while not needing show data.
i have markup shows basic outline , between tables areas able use drag resize tables.
resizing happen vertically, never horizontally. have tried several different approaches left non working code. hoping can this, since stumped.
<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>resize table</title> <style> .element { border: 1px solid #999999; border-radius: 4px; margin: 5px; padding: 5px; } </style> </head> <body> <div id="rezizearea" style="width:1000px; height:800px; overflow:auto; position: relative;" class="element"> <div id="element1" class="element" style="height:100px; overflow:auto; position:absolute; left: 0; top: 0; right:0;"> <div class="row" style="background-color: #dae0e6;"> <div class="col-xs-12"> <table class="fixedheadergrid" style="width: 100%;"> <thead class="scrollable"> <tr> <th class="left fixedheadergridnocolor" style="width: 115px;">visitor name</th> <th class="left fixedheadergridnocolor" style="width: 115px;">visitor location</th> <th class="left fixedheadergridnocolor" style="width: 75px;">waiting</th> <th class="left fixedheadergridnocolor" style="width: 130px;">service requested</th> <th class="left fixedheadergridnocolor" style="width: 115px;">staff</th> <th class="left fixedheadergridnocolor" style="width: 120px;">related</th> <th class="left fixedheadergridnocolor" style="width: 205px;">notes</th> </tr> </thead> <tbody id="queuedatabody" class="ui-resizable scrollable" style="height: 346px;"></tbody> </table> <div class="left" style="margin: 3px 0 0 0;"> <span id="spharvestdate" class="textxsmall">last updated </span> </div> <br /> </div> </div> </div> <div id="resize1" style="height:10px; position:absolute; left: 0; right:0; background: green;"></div> <div class="col-md-12"> <span class="largeheader">calendar appoinments</span> <br /> </div> <div class="row" style="background-color: #dae0e6;"> <div class="col-xs-12"> <table class="fixedheadergrid" style="width: 100%;"> <thead class="scrollable"> <tr> <th class="left fixedheadergridnocolor" style="width: 40px;"></th> <th class="left fixedheadergridnocolor" style="width: 210px;">staff name</th> <th class="left fixedheadergridnocolor" style="width: 120px;">status</th> <th class="left fixedheadergridnocolor" style="width: 150px;">staff location</th> th class="left fixedheadergridnocolor" style="width: 230px;">unavailable</th> <th class="left fixedheadergridnocolor" style="width: 120px;">returning</th> </tr> </thead> <tbody id="calendardatabody" class="scrollable" style="height: 230px;"></tbody> </table> <br /> </div> </div> <div id="resize2" style="height:10px; position:absolute; left: 0; right:0; background: green;"></div> <div class="row" style="background-color: #dae0e6;"> <div class="col-xs-12"> <table class="fixedheadergrid" style="width: 100%;"> <thead class="scrollable"> <tr> <th class="left fixedheadergridnocolor" style="width: 40px;"></th> <th class="left fixedheadergridnocolor" style="width: 210px;">staff name</th> <th class="left fixedheadergridnocolor" style="width: 120px;">status</th> <th class="left fixedheadergridnocolor" style="width: 150px;">staff location</th> <th class="left fixedheadergridnocolor" style="width: 230px;">unavailable</th> <th class="left fixedheadergridnocolor" style="width: 120px;">returning</th> </tr> </thead> <tbody id="staffavailabilitydatabody" class="scrollable" style="height: 230px;"></tbody> </table> <div class="row"> <div class="col-md-6"> information </div> <div class="col-md-6"> <div class="right"> </div> </div> </div> <br /> </div> </div> </div> </div > </body> </html>
Comments
Post a Comment