Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
datatables.net
Advanced tools
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.
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
}
]
});
});
ag-Grid is a fully-featured and highly customizable JavaScript data grid. It offers a wide range of features including sorting, filtering, pagination, and cell editing. Compared to datatables.net, ag-Grid provides more advanced functionalities and is suitable for complex data management tasks.
Handsontable is a JavaScript/HTML5 data grid component with a spreadsheet look & feel. It is easy to implement and offers features like data validation, sorting, and filtering. Handsontable is more focused on providing a spreadsheet-like experience, whereas datatables.net is more focused on traditional tabular data presentation.
React Table is a lightweight, fast, and extendable data grid built for React. It provides hooks for building tables with sorting, filtering, and pagination. React Table is more suitable for React applications and offers a more modern approach compared to datatables.net.
This package contains distribution files for the DataTables library for jQuery. Only the core software for this library is contained in this package - to be correctly styled, a styling package for DataTables must also be included. Styling options include DataTable's native styling, Bootstrap and Foundation.
DataTables is a table enhancing library which adds features such as paging, ordering, search, scrolling and many more to a static HTML page. A comprehensive API is also available that can be used to manipulate the table. Please refer to the DataTables web-site for a full range of documentation and examples.
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
var $ = require( 'jquery' );
require( 'datatables.net' )( window, $ );
bower install --save datatables.net
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
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/DataTablesSrc. 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
jQuery DataTables
The npm package datatables.net receives a total of 276,529 weekly downloads. As such, datatables.net popularity was classified as popular.
We found that datatables.net 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.