diff --git a/slick.grid.js b/slick.grid.js index c12bae9bb..7d6ac10af 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -1407,18 +1407,27 @@ if (typeof Slick === "undefined") { (dataLoading ? " loading" : "") + (row === activeRow ? " active" : "") + (row % 2 == 1 ? " odd" : " even"); - + var attr = ""; if (!d) { rowCss += " " + options.addNewRowCssClass; } var metadata = data.getItemMetadata && data.getItemMetadata(row); - if (metadata && metadata.cssClasses) { - rowCss += " " + metadata.cssClasses; + if (metadata) { + if(metadata.cssClasses){ + rowCss += " " + metadata.cssClasses; + } + if(metadata.attr){ + for (var attribute in metadata.attr){ + if (metadata.attr.hasOwnProperty(attribute)){ + attr += attribute + "='" + metadata.attr[attribute] + "' "; + } + } + } } - stringArray.push("