diff --git a/table.js b/table.js
index 8c04916..50aa727 100644
--- a/table.js
+++ b/table.js
@@ -291,7 +291,8 @@ module.directive('zlTable', ['$compile', '$timeout', '$templateCache', function
dropColumn: dropColumn,
availableColumns: $scope.availableColumns,
areAllSelected: areAllSelected,
- isSortable: isSortable
+ isSortable: isSortable,
+ getIdValue:getIdValue
})
// init()
diff --git a/table.min.js b/table.min.js
index bb1509c..c73204c 100644
--- a/table.min.js
+++ b/table.min.js
@@ -1 +1 @@
-"use strict";var module=angular.module("90TechSAS.zl-table",[]);module.directive("zlTable",["$compile","$timeout","$templateCache",function($compile,$timeout,$templateCache){function compile(elt){function getAvailableColumns(thead,tbody){var row=_.find(thead.children,"tagName","TR");if(!row)throw"zl-table: The thead element should have one tr child";headRowAttrs=row.attributes;var bodyRow=_.find(tbody.children,"tagName","TR");if(!bodyRow)throw"zl-table: The tbody element should have one tr child";return bodyRowAttrs=bodyRow.attributes,_.compact(_.map(row.children,function(c,i){if(!c.attributes.getNamedItem("id"))throw"zl-table: The head cells should have an id";return{id:c.attributes.getNamedItem("id").value,headTemplate:c.innerHTML,template:bodyRow.children[i].innerHTML}}))}var rootElement,bodyRowAttrs,headRowAttrs;rootElement=elt;var head=_.find(elt.children(),"tagName","THEAD");if(!head)throw"zl-table: The table should have one thead child";var tHeadAttrs=head.attributes,body=_.find(elt.children(),"tagName","TBODY");if(!body)throw"zl-table: The table should have one tbody child";var bodyGrid,tBodyAttrs=body.attributes,availableColumns=getAvailableColumns(head,body),headBuilt=buildHeader(tHeadAttrs,headRowAttrs),bodyBuilt=buildBody(tBodyAttrs,bodyRowAttrs);return head.remove(),body.remove(),{pre:function(scope,element){scope.availableColumns=availableColumns,element.append($compile(headBuilt)(scope)),element.append($compile(bodyBuilt)(scope)),$timeout(function(){null!=rootElement[0].attributes.getNamedItem("grid-template")&&(bodyGrid='
";tElement.replaceWith($compile(template)(scope))}}}]),module.filter("zlColumnFilter",function(){return function(allColumns,columnList){var cols=_.pluck(_.filter(columnList,"visible"),"id");return _.sortBy(_.reject(allColumns,function(col){return!_.includes(cols,col.id)}),function(col){return cols.indexOf(col.id)})}});
\ No newline at end of file
+"use strict";var module=angular.module("90TechSAS.zl-table",[]);module.directive("zlTable",["$compile","$timeout","$templateCache",function($compile,$timeout,$templateCache){function compile(elt){function getAvailableColumns(thead,tbody){var row=_.find(thead.children,"tagName","TR");if(!row)throw"zl-table: The thead element should have one tr child";headRowAttrs=row.attributes;var bodyRow=_.find(tbody.children,"tagName","TR");if(!bodyRow)throw"zl-table: The tbody element should have one tr child";return bodyRowAttrs=bodyRow.attributes,_.compact(_.map(row.children,function(c,i){if(!c.attributes.getNamedItem("id"))throw"zl-table: The head cells should have an id";return{id:c.attributes.getNamedItem("id").value,headTemplate:c.innerHTML,template:bodyRow.children[i].innerHTML}}))}var rootElement,bodyRowAttrs,headRowAttrs;rootElement=elt;var head=_.find(elt.children(),"tagName","THEAD");if(!head)throw"zl-table: The table should have one thead child";var tHeadAttrs=head.attributes,body=_.find(elt.children(),"tagName","TBODY");if(!body)throw"zl-table: The table should have one tbody child";var bodyGrid,tBodyAttrs=body.attributes,availableColumns=getAvailableColumns(head,body),headBuilt=buildHeader(tHeadAttrs,headRowAttrs),bodyBuilt=buildBody(tBodyAttrs,bodyRowAttrs);return head.remove(),body.remove(),{pre:function(scope,element){scope.availableColumns=availableColumns,element.append($compile(headBuilt)(scope)),element.append($compile(bodyBuilt)(scope)),$timeout(function(){null!=rootElement[0].attributes.getNamedItem("grid-template")&&(bodyGrid='
";tElement.replaceWith($compile(template)(scope))}}}]),module.filter("zlColumnFilter",function(){return function(allColumns,columnList){var cols=_.pluck(_.filter(columnList,"visible"),"id");return _.sortBy(_.reject(allColumns,function(col){return!_.includes(cols,col.id)}),function(col){return cols.indexOf(col.id)})}});
\ No newline at end of file