code: function(fields) {
        var columndefs = [];
      	for(var i = 0 ; i < fields.length ; i++) {
      		columndefs.push( this.fieldToColumndef(fields[i]) );
      	}
      	return columndefs;
     }
docs: Convert an inputEx fields definition to a DataTable columns definition