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

Function getAffectedColumns

components/dash-table/src/dash-table/utils/actions.js:59–76  ·  view source on GitHub ↗
(
    column,
    columns,
    headerRowIndex,
    mergeDuplicateHeaders,
    backwardLooking = false
)

Source from the content-addressed store, hash-verified

57}
58
59export function getAffectedColumns(
60 column,
61 columns,
62 headerRowIndex,
63 mergeDuplicateHeaders,
64 backwardLooking = false
65) {
66 const {groupIndexFirst, groupIndexLast} = getGroupedColumnIndices(
67 column,
68 columns,
69 headerRowIndex,
70 mergeDuplicateHeaders,
71 columns.indexOf(column),
72 backwardLooking
73 );
74
75 return R.slice(groupIndexFirst, groupIndexLast + 1, R.pluck('id', columns));
76}
77
78export function clearColumn(
79 column,

Callers 1

deleteColumnFunction · 0.85

Calls 2

getGroupedColumnIndicesFunction · 0.85
indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…