//>>built
define("dgrid/GridFromHtml",["./Grid","dojo/_base/declare","dojo/dom-construct"],function(n,p,q){var e=p(n,{configStructure:function(){if(!this._checkedTrs){this._checkedTrs=!0;for(var b=this.srcNodeRef,c=[],a=b.getElementsByTagName("tr"),d=a.length,r=e.utils.getColumnFromCell,g,f,h,m,k=0;k<d;k++){g=[];c.push(g);f=a[k];h=f.getElementsByTagName("th");m=h.length;for(var l=0;l<m;l++)g.push(r(h[l]))}f&&b.removeChild(f.parentNode);this.subRows=c}return this.inherited(arguments)},create:function(b,c){var a=
document.createElement("div"),d=c.id,e=c.getAttribute("style");d&&(this.id=d);a.className=c.className;e&&a.setAttribute("style",e);c.parentNode.replaceChild(a,c);(b=b||{}).srcNodeRef=c;this.inherited(arguments,[b,a]);q.destroy(c)}});e.utils={getBoolFromAttr:function(b,c){var a=b.getAttribute(c);return a&&"false"!==a},getNumFromAttr:function(b,c){var a=b.getAttribute(c),a=a&&Number(a);return isNaN(a)?void 0:a},getPropsFromNode:function(b){var c;b=b.getAttribute("data-dgrid-column");if(!b)return{};
try{c=eval("("+b+")")}catch(a){throw Error("Error in data-dgrid-column {"+b+"}: "+a.toString());}return c},getColumnFromCell:function(b){var c=e.utils.getNumFromAttr,a,d;a=e.utils.getPropsFromNode(b);a.label="label"in a?a.label:b.innerHTML;a.field=a.field||b.className||b.innerHTML;!a.className&&b.className&&(a.className=b.className);!a.rowSpan&&(d=c(b,"rowspan"))&&(a.rowSpan=d);!a.colSpan&&(d=c(b,"colspan"))&&(a.colSpan=d);return a}};return e});
//# sourceMappingURL=GridFromHtml.js.map