Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
neenhouse-react-grid
Advanced tools
ES6/7 Grid written in ReactJS
npm install neenhouse-react-grid --save;
npm run demo
import React from 'react';
import ReactDOM from 'react-dom';
import ReactGrid from 'react-grid';
ReactDOM.render(<ReactGrid {...options} />, document.body);
// If set to true, renders a checkbox in the first column
bulkSelectionEnabled: [React.PropTypes.bool, false],
// Array of column definitions (required)
// Ex: [{
// description: 'Name',
// flex: 1,
// sortColumn:'Name',
// sortDirection:'ASC',
// isDefault:true
// }]
columnHeaders: [React.PropTypes.array, null],
// Function that is executed on callback when accessing count response
countAccessor: [React.PropTypes.func, function(response){ return response; }],
// Provide data directly to grid. Use with "dataProvider" set to false.
data: [React.PropTypes.array, null],
// Function that is executed on callback when accessing data response
dataAccessor: [React.PropTypes.func, function(response){ return response; }],
// Callback function for table interactions
dispatch: [React.PropTypes.func, function(){}],
// Empty message to display to user
emptyMessage: [React.PropTypes.string, 'No records found.'],
// Number of items to show when loading data (defaults to 10)
numberOfLoadingItems: [React.PropTypes.number, 10],
// Provide pager state
pager: [React.PropTypes.object, {
increments: [10, 20, 50, 100],
index:1,
items:20,
total:0
}],
// Provide function for rendering expanded row
renderExpandedRow: [React.PropTypes.any, false],
// Provide row rendering function. Takes "rowData" as first argument.
// EXAMPLE:
// renderRow:function(rowData){
// return <span>{rowData.firstName}</span>;
// }
renderRow:[React.PropTypes.func.isRequired, null],
// If set to false, will allow multiple rows to be expanded
singleExpand: [React.PropTypes.bool, true],
// Prop keys that determine if component is re-rendered
updateProps: [React.PropTypes.array, ['pager', 'data']],
// If set to false, does not render column headers
useHeader: [React.PropTypes.bool, true],
// Sets usage mode of pager (supports true, false, and 'manual')
usePager: [React.PropTypes.any, true],
// Unique identifier for data table instance
idKey: [React.PropTypes.string, null]
FAQs
ReactJS Grid
We found that neenhouse-react-grid 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.