mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
basic ratings field
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user