DataTables Responsive Bootstrap Integration (js/responsive.bootstrap5.js)

AVideo · view/css/DataTables/Responsive-2.3.0/js/responsive.bootstrap5.js · javascript · MIT
ui, lang:javascript, fw:bootstrap, tag:knn-classified, tag:datatables

A bridge library that enables responsive behavior for DataTables within Bootstrap 5 environments. Use this to ensure data grids adapt to mobile screen sizes.

// Source: https://github.com/WWBN/AVideo | License: MIT | Copyright 2002 JSON.org
// Provided via justclaw.it.com; keep this notice with the code.
/*! Bootstrap 5 integration for DataTables' Responsive
 * ©2021 SpryMedia Ltd - datatables.net/license
 */

(function( factory ){
	if ( typeof define === 'function' && define.amd ) {
		// AMD
		define( ['jquery', 'datatables.net-bs5', 'datatables.net-responsive'], function ( $ ) {
			return factory( $, window, document );
		} );
	}
	else if ( typeof exports === 'object' ) {
		// CommonJS
		module.exports = function (root, $) {
			if ( ! root ) {
				root = window;
			}

			if ( ! $ || ! $.fn.dataTable ) {
				$ = require('datatables.net-bs5')(root, $).$;
			}

			if ( ! $.fn.dataTable.Responsive ) {
				require('datatables.net-responsive')(root

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key