Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_formatter(rowData, columnIndex) {
const {columns} = this.state;
const {id, type} = columns[columnIndex];
const v = rowData[id];
switch (control_by_type(type, v)) {
case 'ocombo':
return this.props._mgr.value_mgr(rowData, id, type, false, v).get(v).presentation;
case 'dhxCalendar':
return $p.utils.moment(v).format($p.utils.moment._masks.date);
case 'calck':
return v;
default:
return v ? v.toString() : '';
}
}
_formatter(rowData, columnIndex) {
const {columns} = this.state;
const {id, type} = columns[columnIndex];
const v = rowData[id];
switch (control_by_type(type, v)) {
case 'ocombo':
return this.props._mgr.value_mgr(rowData, id, type, false, v).get(v).presentation;
case 'dhxCalendar':
return $p.utils.moment(v).format($p.utils.moment._masks.date);
case 'calck':
return v;
default:
return v ? v.toString() : '';
}
}
render() {
const {_meta, props} = this;
const {_obj, _fld, ctrl_type} = props;
const type = ctrl_type || control_by_type(_meta.type, _obj[_fld]);
switch (type) {
case 'ocombo':
return ;
case 'oselect':
return ;
case 'calck':
return ;
case 'dhxCalendar':
return ;
case 'ch':
render() {
const {_meta, props} = this;
const {_obj, _fld, ctrl_type} = props;
const type = ctrl_type || control_by_type(_meta.type, _obj[_fld]);
switch (type) {
case 'ocombo':
return ;
case 'oselect':
return ;
case 'calck':
return ;
case 'dhxCalendar':
return ;
case 'ch':