cell data view

This commit is contained in:
Jan Prochazka
2020-11-05 14:11:31 +01:00
parent 42ffd49f6e
commit 7b64e33e92
7 changed files with 126 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
import React from 'react';
import styled from 'styled-components';
const StyledInput = styled.textarea`
flex: 1;
`;
export default function TextCellView({ value, grider, selection }) {
return (
<StyledInput
value={value}
wrap="off"
readOnly
// readOnly={grider ? !grider.editable : true}
// onChange={(e) => grider.setCellValue(selection[0].row, selection[0].column, e.target.value)}
/>
);
}