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

datatables.net

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatables.net

jQuery DataTables

  • 2.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
293K
decreased by-28.47%
Maintainers
1
Weekly downloads
 
Created

What is datatables.net?

The datatables.net npm package is a popular library for creating interactive and feature-rich HTML tables. It provides a wide range of functionalities such as pagination, searching, sorting, and filtering, making it easier to manage and display large datasets in a tabular format.

What are datatables.net's main functionalities?

Pagination

This feature allows you to add pagination to your tables, making it easier to navigate through large datasets by breaking them into smaller, more manageable pages.

const $ = require('jquery');
require('datatables.net')();

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

Searching

This feature enables a search box that allows users to filter table data based on their input, making it easier to find specific information within the table.

const $ = require('jquery');
require('datatables.net')();

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

Sorting

This feature allows you to sort table columns in ascending or descending order, providing a way to organize data based on different criteria.

const $ = require('jquery');
require('datatables.net')();

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

Filtering

This feature allows you to apply filters to specific columns, enabling more granular control over the data displayed in the table.

const $ = require('jquery');
require('datatables.net')();

$(document).ready(function() {
  $('#example').DataTable({
    'columnDefs': [
      {
        'targets': [0],
        'searchable': true
      }
    ]
  });
});

Other packages similar to datatables.net

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