Gathering detailed insights and metrics for react-table-hoc-select-cell
Gathering detailed insights and metrics for react-table-hoc-select-cell
Gathering detailed insights and metrics for react-table-hoc-select-cell
Gathering detailed insights and metrics for react-table-hoc-select-cell
npm install react-table-hoc-select-cell
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
27 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 09, 2023
Latest Version
0.8.0
Package Id
react-table-hoc-select-cell@0.8.0
Unpacked Size
169.11 kB
Size
37.80 kB
File Count
12
NPM Version
5.3.0
Node Version
8.5.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
51
npm install react-table-hoc-select-cell --save
1import ReactTable from 'react-table'; 2import createTable from 'react-table-hoc-selectable-cell'; 3 4const ReactTableSelectCell = createTable(ReactTable, config);
retrievePrevOriginal
- {function} - make possible to retrieve previous selected cells even if the data was changed. It's usefull when you need to change the order of data and you want to keep selected cells.
1config = { 2 retrievePrevOriginal: (prevOriginal, nextOriginal) => prevOriginal.id === nextOriginal.id 3}
enableMultipleColsSelect
- {bool | array | function} - default false
- define if differents columns can be selected. You can choose to enable only some columns with an array.
In the next example, name
and firstname
column can be selected together, and personalEmail
with workEmail
. But name
column cannot be selected with personalEmail
:
1config = { 2 enableMultipleColsSelect: [['name', 'firsname'], ['personalEmail', 'workEmail']] 3}
1config = { 2 enableMultipleColsSelect: (cellFrom, cellTo) => { 3 return cellFrom.column.id === cellTo.column.id; 4 } 5}
Select data are injected as second parameter of Cell
:
1render () { 2 return ( 3 <ReactTableSelectCell 4 columns={[ 5 { 6 Cell: (row, { selected, onSelect }) => { 7 const style = { border: selected ? 'border solid 1px' : null }; 8 return ( 9 <div onClick={event => onSelect(event, row)} style={style}> 10 {row.value} 11 <div/> 12 ) 13 }, 14 } 15 ]} 16 > 17 ) 18}
selected
{bool} - true
if cell is selected
getSelectedCells
{func} - return array of selected cells
selectedCells
- DEPRECATED {array} - array of selected cells. Use getSelectedCells
instead. It's deprecated because it can create issue if you use cell as PureComponent, all cells will be rerender when selectedCells
change.
onSelect
{func} - Use to select a cell. It take event
and row
arguments
unselectAllCells
{func} - unselect all selected cells.
You can use wrappedInstanceRef
props to get the ref of ReactTable:
1render () { 2 return ( 3 <ReactTableSelectCell 4 wrappedInstanceRef={(ref) => { this.tableRef = ref; }} 5 ... 6 > 7 ) 8}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
69 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More