Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
react-table-control
Advanced tools
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/komarovalexander/react-table-control/blob/master/LICENSE) [![Build Status](https://travis-ci.com/komarovalexander/react-table-control.svg?token=9QUEx9r7MWqF44f9VDer
This project is on pre-alpha stage. Stable version with documentation and finished styles will be available no later than January of 2020
The customizable, extendable, lightweight and free React Table Component
Can easily be included in react projects, never mind ts or js
// TODO Demo
npm
npm install react-table-control
yarn
yarn add react-table-control
// TODO
Properties
Name | Type | Description |
---|---|---|
columns | Column[] | Columns in table and their look and behaviour |
data | any[] | The data which is shown in Table's rows |
editableCells | Cell[] | This property contains the array of cells which are being edited |
editingMode | EditingMode | Sets the table's editing mode |
filterRow | FilterCondition[] | Sets filters for columns |
groups | Group[] | Group's in the table |
groupsExpanded | TODO | Contains groups which are expanded in the grid |
rowKey | string | Property of data's item which is used to identitify row |
sortingMode | SortingMode[] | Sorting mode |
search | string | Specifies the text which should be found in the data |
Describes column of table its look and behaviour Properties
Name | Type | Description |
---|---|---|
field | string | Specifies the property of data's object which value will be used in column |
title | string | Specifies the text of the header |
dataType | DataType | Specifies the type of column |
sortDirection | SortDirection | Sets the direction of sorting for the column |
editor | EditorFunc | Returns an editor if cell is in editable mode |
cell | CellFunc | Returns an custom cell if it is not in editable mode |
width | number | string | Sets the width of the column |
textAlign | TextAlign | Sets column's text alignment |
search | SearchFunc | Overrides the default search method for the cell. Executes if Table.search option is set |
validation | ValidationFunc | Returns the validation error string or does not return anything in case of passed validation |
Describes the position of a cell in the table
Properties
Name | Type | Description |
---|---|---|
field | string | The field of |
specific column | ||
rowKeyValue | any | Data's key value of еру specific row |
Properties
Name | Type | Description |
---|---|---|
field | string | The filtered column's field |
operator | string | Operator which will be applied for filtering |
value | any | Filtered value |
Properties
Name | Type | Description |
---|---|---|
field | string | The grouped column's field |
Property | String value |
---|---|
Boolean | 'boolean' |
Date | 'date' |
Number | 'number' |
Object | 'object' |
String | 'string' |
Property | String value | Description |
---|---|---|
None | 'none' | Editing is disabled |
Cell | 'cell' | Data is edited by cell to cell, click by cell activates editing |
Property | String value |
---|---|
Ascend | 'ascend' |
Descend | 'descend' |
Property | String value |
---|---|
None | 'none' |
Single | 'single' |
Property | String value |
---|---|
Center | 'center' |
Left | 'left' |
Right | 'right' |
(props: ICellEditorProps
) => any;
Function which obtains ICellEditorProps
as parameter and returns React component which should be shown instead of default editor.
(props: ICellContentProps
) => any;
Function which obtains ICellContentProps
as parameter and returns React component which should be shown instead of cell content.
(searchText?: string, rowData?: any, column?: Column) => boolean;
Function which obtains searchText?: string, rowData?: any, column?: Column - as parameters and returns boolean value which is true if cell's value is matched with searched value and false otherwise.
(value: any, rowData: any) => string | void;
Function which obtains value of specific cell and row - as parameters and returns validation error string or does not return anything in case of passed validation.
Properties
Name | Type | Description |
---|---|---|
column | Column | settings of the column in which editor is shown |
rowData | any | data of the row in which editor is shown |
close | () => void | call this method to close editor |
onValueChange | (newValue: any) => void | call this method to change value of the row: onValueChange({ ...rowData, ...{ [field]: value } }) |
Properties
Name | Type | Description |
---|---|---|
column | Column | settings of the column in which editor is shown |
openEditor | () => void | call this method to open editor of the cell |
rowData | any | data of the row in which editor is shown |
FAQs
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/komarovalexander/react-table-control/blob/master/LICENSE) [![Build Status](https://travis-ci.com/komarovalexander/react-table-control.svg?token=9QUEx9r7MWqF44f9VDer
We found that react-table-control demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.