Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
datatables.net-select
Advanced tools
The datatables.net-select package is an extension for the DataTables library that provides row, column, and cell selection capabilities. It allows users to interact with tables by selecting specific parts of the data, which can then be used for further processing or analysis.
Row Selection
This feature allows users to select entire rows in a DataTable. The selected rows can then be manipulated or used for further actions.
var table = $('#example').DataTable({
select: true
});
Column Selection
This feature enables users to select entire columns. This can be useful for operations that need to be performed on entire columns of data.
var table = $('#example').DataTable({
select: {
style: 'multi',
items: 'column'
}
});
Cell Selection
This feature allows users to select individual cells within the DataTable. This is useful for more granular data manipulation.
var table = $('#example').DataTable({
select: {
style: 'os',
items: 'cell'
}
});
Multi-Item Selection
This feature allows users to select multiple items (rows, columns, or cells) at once. This is useful for batch operations.
var table = $('#example').DataTable({
select: {
style: 'multi'
}
});
API Integration
This feature provides an API for integrating selection events with custom logic. For example, you can log the data of selected rows.
var table = $('#example').DataTable();
table.on('select', function (e, dt, type, indexes) {
var data = table.rows(indexes).data().toArray();
console.log(data);
});
ag-Grid is a fully-featured and highly customizable JavaScript data grid. It offers similar selection capabilities (row, column, and cell selection) along with a wide range of other features like sorting, filtering, and pagination. Compared to datatables.net-select, ag-Grid is more feature-rich but also more complex to set up.
Handsontable is a JavaScript/HTML5 data grid component with Excel-like appearance. It supports row, column, and cell selection, similar to datatables.net-select. Handsontable is particularly well-suited for applications that require a spreadsheet-like interface.
SlickGrid is a JavaScript grid/spreadsheet component that offers high performance and a rich set of features, including row and cell selection. It is highly customizable and can handle large datasets efficiently. Compared to datatables.net-select, SlickGrid is more performance-oriented and suitable for large-scale data.
This package contains distribution files for the Select extension for DataTables. Only the core software for this library is contained in this package - to be correctly styled, a styling package for Select must also be included. Styling options include DataTable's native styling, Bootstrap and Foundation.
Select provides table item selection capabilities - rows, columns and cells can be selected individually or collectively. Complex selection operations such as operating system style selection (ctrl/cmd and shift click) for multiple rows can be enabled with a single option for a DataTable.
For inclusion of this library using a standard <script>
tag, rather than using this package, it is recommended that you use the DataTables download builder which can create CDN or locally hosted packages for you, will all dependencies satisfied.
npm install datatables.net-select
ES3 Syntax
var $ = require( 'jquery' );
require( 'datatables.net-select' )( window, $ );
ES6 Syntax
import 'datatables.net-select'
bower install --save datatables.net-select
Full documentation and examples for Select can be found on the website.
Support for DataTables is available through the DataTables forums and commercial support options are available.
If you are thinking of contributing code to DataTables, first of all, thank you! All fixes, patches and enhancements to DataTables are very warmly welcomed. This repository is a distribution repo, so patches and issues sent to this repo will not be accepted. Instead, please direct pull requests to the DataTables/Select. For issues / bugs, please direct your questions to the DataTables forums.
This software is released under the MIT license. You are free to use, modify and distribute this software, but all copyright information must remain.
FAQs
Select for DataTables
The npm package datatables.net-select receives a total of 116,152 weekly downloads. As such, datatables.net-select popularity was classified as popular.
We found that datatables.net-select demonstrated a healthy version release cadence and project activity because the last version was released less than 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.