Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datatables.net-select

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatables.net-select

Select for DataTables

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
139K
increased by4.86%
Maintainers
1
Weekly downloads
 
Created

What is datatables.net-select?

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.

What are datatables.net-select's main functionalities?

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);
});

Other packages similar to datatables.net-select

Keywords

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc