Add plain string control with formatter.
parent
f742c5eb8a
commit
314fcabbeb
|
@ -80,6 +80,7 @@ const useStyles = makeStyles((theme)=>({
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
},
|
},
|
||||||
tableCellHeader: {
|
tableCellHeader: {
|
||||||
fontWeight: theme.typography.fontWeightBold,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import React, { useCallback } from 'react';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
import { FormInputText, FormInputSelect, FormInputSwitch, FormInputCheckbox, FormInputColor,
|
import { FormInputText, FormInputSelect, FormInputSwitch, FormInputCheckbox, FormInputColor,
|
||||||
FormInputFileSelect, FormInputToggle, InputSwitch, FormInputSQL, FormNote, FormInputDateTimePicker } from '../components/FormComponents';
|
FormInputFileSelect, FormInputToggle, InputSwitch, FormInputSQL, FormNote, FormInputDateTimePicker, PlainString } from '../components/FormComponents';
|
||||||
import { InputSelect, InputText, InputCheckbox, InputDateTimePicker } from '../components/FormComponents';
|
import { InputSelect, InputText, InputCheckbox, InputDateTimePicker } from '../components/FormComponents';
|
||||||
import Privilege from '../components/Privilege';
|
import Privilege from '../components/Privilege';
|
||||||
import { evalFunc } from 'sources/utils';
|
import { evalFunc } from 'sources/utils';
|
||||||
|
@ -100,7 +100,7 @@ function MappedFormControlBase({type, value, id, onChange, className, visible, i
|
||||||
case 'datetimepicker':
|
case 'datetimepicker':
|
||||||
return <FormInputDateTimePicker name={name} value={value} onChange={onTextChange} className={className} {...props} />;
|
return <FormInputDateTimePicker name={name} value={value} onChange={onTextChange} className={className} {...props} />;
|
||||||
default:
|
default:
|
||||||
return <span>{value}</span>;
|
return <PlainString value={value} {...props} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ function MappedCellControlBase({cell, value, id, optionsLoaded, onCellChange, vi
|
||||||
case 'datetimepicker':
|
case 'datetimepicker':
|
||||||
return <InputDateTimePicker name={name} value={value} onChange={onTextChange} {...props}/>;
|
return <InputDateTimePicker name={name} value={value} onChange={onTextChange} {...props}/>;
|
||||||
default:
|
default:
|
||||||
return <span>{value}</span>;
|
return <PlainString value={value} {...props} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue