Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
};
});
const columnDefs = [{
headerName: localeUtil.getMsg("ui.common.action"),
field: '_id',
pinned: true,
width: 60,
suppressSorting: true,
cellRenderer: reactCellRendererFactory(ActionCellRenderer)
}, {
headerName: localeUtil.getMsg("ui.common.applyto"),
field: 'project',
pinned: true,
cellRenderer: reactCellRendererFactory(ProjectCellRenderer)
}, {
headerName: "Key",
field: "key",
pinned: true
}, {
headerName: localeUtil.getMsg("ui.common.desc"),
field: "description",
pinned: true
}, {
headerName: localeUtil.getMsg("ui.common.locales") + " " + localeUtil.getMsg("ui.grid.edit"),
children: localeCols
}
];
return columnDefs;
}
field: locale,
editable: true,
newValueHandler: function(params) {
params.data[params.colDef.field] = params.newValue;
me.props.updateTranslation(params.data);
}
};
});
const columnDefs = [{
headerName: localeUtil.getMsg("ui.common.action"),
field: '_id',
pinned: true,
width: 60,
suppressSorting: true,
cellRenderer: reactCellRendererFactory(ActionCellRenderer)
}, {
headerName: localeUtil.getMsg("ui.common.applyto"),
field: 'project',
pinned: true,
cellRenderer: reactCellRendererFactory(ProjectCellRenderer)
}, {
headerName: "Key",
field: "key",
pinned: true
}, {
headerName: localeUtil.getMsg("ui.common.desc"),
field: "description",
pinned: true
}, {
headerName: localeUtil.getMsg("ui.common.locales") + " " + localeUtil.getMsg("ui.grid.edit"),
children: localeCols
value: function render() {
return _react2.default.createElement(
'div',
{ style: { height: '90%' },
className: 'ag-fresh ag-container' },
_react2.default.createElement(_agGridReact.AgGridReact, this.props)
);
}
}]);