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

datatables.net-dt

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatables.net-dt

DataTables for jQuery with styling for [DataTables](https://datatables.net/)

  • 2.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is datatables.net-dt?

The datatables.net-dt npm package is a jQuery plugin that adds advanced interaction controls to HTML tables. It provides features like pagination, instant search, and multi-column ordering to enhance the user experience when working with large datasets in tabular form.

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

Pagination

This feature allows you to paginate through large datasets, making it easier to navigate through data. The code initializes DataTables on an HTML table with the ID 'example', automatically adding pagination controls.


$(document).ready(function() {
  $('#example').DataTable();
});

Instant Search

Instant search enables users to quickly find specific information within the table. The same initialization code applies, as DataTables includes instant search functionality by default.


$(document).ready(function() {
  $('#example').DataTable();
});

Multi-Column Ordering

Multi-column ordering allows users to sort the table by multiple columns. This is useful for complex datasets where sorting by a single column is insufficient. The default initialization code also includes this feature.


$(document).ready(function() {
  $('#example').DataTable();
});

Custom Column Rendering

Custom column rendering allows you to define how data in a specific column should be displayed. In this example, the first column's data is appended with data from the fourth column.


$(document).ready(function() {
  $('#example').DataTable({
    'columnDefs': [
      {
        'targets': 0,
        'render': function(data, type, row) {
          return data + ' (' + row[3] + ')';
        }
      }
    ]
  });
});

Other packages similar to datatables.net-dt

Keywords

FAQs

Package last updated on 04 Oct 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