This template allows to display text as a string value. Optionally it also gives a possibility to change rendering method and validate displaying text.
Implementation
- Open TextCellimplementation on github
Interface declaration
interface TextCell extends Cell {
    type: 'text',
    text: string,
    validator?: (text: string) => boolean,
    renderer?: (text: string) => React.ReactNode
}| Property name | Type | Property description | 
|---|---|---|
| type | header | Type of cell template | 
| text | string | Text content of cell | 
| validator? | (text: string) => boolean | Optional validation function, if undefined - returns true | 
| renderer? | (text: string) => React.ReactNode | Optional, gives oportunity to wrap textproperty into anyReactNodeobject |