MCPcopy
hub / github.com/plotly/dash / matchesDataCell

Function matchesDataCell

components/dash-table/src/dash-table/conditional/index.ts:149–164  ·  view source on GitHub ↗
(
    datum: Datum,
    i: number,
    column: IColumn,
    active: boolean,
    selected: boolean
)

Source from the content-addressed store, hash-verified

147export type Filter<T> = (s: T[]) => T[];
148
149export const matchesDataCell = (
150 datum: Datum,
151 i: number,
152 column: IColumn,
153 active: boolean,
154 selected: boolean
155): Filter<IConvertedStyle> =>
156 R.filter<IConvertedStyle>(
157 style =>
158 !style.checksHeaderRow() &&
159 style.matchesActive(active) &&
160 style.matchesSelected(selected) &&
161 style.matchesDataRow(i) &&
162 style.matchesColumn(column) &&
163 style.matchesFilter(datum)
164 );
165
166export const matchesFilterCell = (column: IColumn): Filter<IConvertedStyle> =>
167 R.filter<IConvertedStyle>(

Callers 2

getDataCellEdgesFunction · 0.90
getDataCellStyleFunction · 0.90

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…