react-minimalist-table
  • Getting started
  • Conditional Cell Styling
  • All props
Powered by GitBook
On this page

Was this helpful?

All props

List of all the existing props.

PreviousConditional Cell Styling

Last updated 4 years ago

Was this helpful?

PropName

type

Expected

caption

string

Title to be displayed upon the table

data

arrayOf(object)

JSON-array of the data to be displayed

headerColor

string

Background color to be applied to the header of the table

headerTextColor

string

Text color to be applied do the header cells of the table

primaryColor

string

Background color for even rows

secondaryColor

string

Background color for odd rows

conditionalCellStyle

arrayOf(object)

An array of rules in order to apply conditional Cell Styling. The object must include:

columns: array of columns in which the conditional style will be applied.

styleTrue: style if validation returns true

styleFalse: style if validation returns false

defaultStyle: style if validation neither returns true nor false

validation: a function that should return either true of false in order to apply a style

😄
😄
😄
😄
😄