@@ -30,6 +30,7 @@ and END_CELL_EDIT` events.
30
30
31
31
__ColumnDef Options__:
32
32
33
+ - `editModelField` (default: undefined) - a bindable expression to use instead of colDef.field when binding the edit control.
33
34
- `editableCellTemplate` (default: `'ui-grid/cellEditor'`) - Valid html, templateCache Id, or url that returns html
34
35
content to be compiled when edit mode is invoked.
35
36
- `enableCellEdit` (default: `false` for columns of type `'object'`, `true` for all other columns) - `true` will enable
@@ -55,9 +56,9 @@ The following option is available only if using cellNav feature
55
56
56
57
_Note that the edit functionality uses native html5 edit widgets - the date picker, the dropdown and the input box
57
58
itself. If your browser does not implement these widgets, then you won't get them. If your browser implements these
58
- widgets in a way that isn't ideal (for example, some browsers don't allow number fields to start with '.', so you can't
59
+ widgets in a way that isn't ideal (for example, some browsers don't allow number fields to start with '.', so you can't
59
60
type in '.5'), then you need to provide a custom editor instead. On the medium term roadmap there is intent
60
- to provide a bootstrap feature, which would provide directives that were compatible with angular-bootstrap directives,
61
+ to provide a bootstrap feature, which would provide directives that were compatible with angular-bootstrap directives,
61
62
allowing use of the bootstrap datepicker and input fields_
62
63
63
64
@@ -91,7 +92,7 @@ $scope.gridOptions.columnDefs = [
91
92
// ignore all but the first file, it can only select one anyway
92
93
// set the filename into this column
93
94
gridRow.entity.filename = files[0].name;
94
-
95
+
95
96
// read the file and set it into a hidden column, which we may do stuff with later
96
97
var setFile = function(fileContent){
97
98
gridRow.entity.file = fileContent.currentTarget.result;
@@ -102,7 +103,7 @@ $scope.gridOptions.columnDefs = [
102
103
var reader = new FileReader();
103
104
reader.onload = setFile;
104
105
reader.readAsText( files[0] );
105
- };
106
+ };
106
107
107
108
$scope.gridOptions.columnDefs = [
108
109
{ name: 'id', enableCellEdit: false, width: '10%' },
@@ -127,7 +128,7 @@ $scope.gridOptions.columnDefs = [
127
128
{ name: 'filename', displayName: 'File', width: '20%', editableCellTemplate: 'ui-grid/fileChooserEditor',
128
129
editFileChooserCallback: $scope.storeFile }
129
130
];
130
-
131
+
131
132
$scope.msg = {};
132
133
133
134
$scope.gridOptions.onRegisterApi = function(gridApi){
0 commit comments