Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "Cell"

Index

Interfaces

Variables

Functions

Variables

Const Cell

Cell: React.FC<CellProps> = memo((props) => {const {x,y,width,height,value,fill = "white",strokeWidth = 0.5,stroke = "#aaa",align = "center",verticalAlign = "middle",textColor = "#333",padding = 5,fontFamily = "Arial, sans-serif",fontSize = 12,onClick,children,} = props;return (<Group onClick={onClick}><Rectx={x}y={y}height={height}width={width}fill={fill}stroke={stroke}strokeWidth={strokeWidth}shadowForStrokeEnabled={false}/><Textx={x}y={y}height={height}width={width}text={value}fill={textColor}verticalAlign={verticalAlign}align={align}fontFamily={fontFamily}fontSize={fontSize}padding={padding}/>{children}</Group>);})

Default cell component

param

Functions

Const CellRenderer

Generated using TypeDoc