basic ratings field

This commit is contained in:
shams mosowi
2019-09-13 14:16:05 +10:00
parent 4a96998955
commit 7172ef2a83

View File

@@ -89,7 +89,16 @@ const TableCell = (props: any) => {
);
case FieldType.rating:
return <Rating name="pristine" value={null} />;
return (
<Rating
name="pristine"
value={cellData}
precision={0.5}
onChange={(event, newValue) => {
cellActions.update(newValue);
}}
/>
);
default:
return (
<TextField