@@ -2,7 +2,8 @@ angular.module('patternfly.table').component('pfTableView', {
22 bindings : {
33 config : '<?' ,
44 dtOptions : '<?' ,
5- colummns : '<' ,
5+ colummns : '<?' ,
6+ columns : '<?' ,
67 items : '<' ,
78 actionButtons : '<?' ,
89 menuActions : '<?' ,
@@ -41,6 +42,9 @@ angular.module('patternfly.table').component('pfTableView', {
4142 $log . debug ( "$onInit" ) ;
4243 }
4344
45+ if ( angular . isDefined ( ctrl . colummns ) && angular . isUndefined ( ctrl . columns ) ) {
46+ ctrl . columns = ctrl . colummns ;
47+ }
4448 if ( angular . isUndefined ( ctrl . dtOptions ) ) {
4549 ctrl . dtOptions = { } ;
4650 }
@@ -79,7 +83,7 @@ angular.module('patternfly.table').component('pfTableView', {
7983 // lodash-amd a-pf is using
8084
8185 if ( ! validSelectionMatchProp ( ) ) {
82- angular . forEach ( ctrl . colummns , function ( col ) {
86+ angular . forEach ( ctrl . columns , function ( col ) {
8387 if ( props . length === 0 ) {
8488 props = col . itemField ;
8589 } else {
@@ -88,7 +92,7 @@ angular.module('patternfly.table').component('pfTableView', {
8892 } ) ;
8993 throw new Error ( "pfTableView - " +
9094 "config.selectionMatchProp '" + ctrl . config . selectionMatchProp +
91- "' does not match any property in 'config.colummns '! Please set config.selectionMatchProp " +
95+ "' does not match any property in 'config.columns '! Please set config.selectionMatchProp " +
9296 "to one of these properties: " + props ) ;
9397 }
9498
@@ -342,7 +346,7 @@ angular.module('patternfly.table').component('pfTableView', {
342346
343347 ctrl . isColItemFld = function ( key ) {
344348 var retVal = false ;
345- var tableCol = $filter ( 'filter' ) ( ctrl . colummns , { itemField : key } ) ;
349+ var tableCol = $filter ( 'filter' ) ( ctrl . columns , { itemField : key } ) ;
346350
347351 if ( tableCol && tableCol . length === 1 ) {
348352 retVal = true ;
0 commit comments