////////////////////////////////////////////////////////////////////////////////
//example codez re trying to create a grid with rows of dynamic height to
//cater for folks that wanna bung loads of stuff in a field & see it all...
//by [email protected] ~ visit: www.violet313.org/slickgrids
//have all the fun with it ;) vxx.
////////////////////////////////////////////////////////////////////////////////
window.V313=(function(V313, $, undefined){return V313;})(window.V313 || {}, jQuery);
V313.modSlickgridEx5a=(
function()
{
var _dataView=null;
var _grid=null;
var _data=[];
var _attribs= //lets make a start on abstracting out all the DOM attribute literals
{
//ours
grid: "oh-my-griddy-aunt",
tardis: "tardis", //for templates & hiding stuff.
detailField: "pcComplete",
//ours, for styling away UI side-efects etc
toggle: "toggle",
cell: "dynamic-cell",
cellDetail: "dynamic-cell-detail",
row: "dynamic-row",
rowYin: "dynamic-row-yin",
rowYang: "dynamic-row-yang",
rowParent: "dynamic-row-parent",
rowPadding: "dynamic-row-padding",
rowPaddingLast: "dynamic-row-padding-last",
rowPaddingInner: "dynamic-row-padding-inner",
};
_attribs.classSelector=function(k) {return "."+this[k]};
_attribs.idSelector=function(k) {return "#"+this[k]};
//////////////////////////////////////////////////////////////
//always reference columns by name so user can move 'em around
//////////////////////////////////////////////////////////////
var getIdxDetailCol=function() { return _grid.getColumnIndex(_attribs.detailField); }
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
var...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.