jQuery Plugin to Scroll In/Maximize Large Tables | largetable

largetable is a small jQuery plugin to prevent wide tables from compromising its main container. The plug-in adds a horizontal scroll bar to the bottom as well as a scroll shadow to the right of a bold HTML table.

It also creates an expand button that enables the user to enlarge the HTML table to improve readability. To close the enlarged table, click the Fold button or press ESC.

How to make use of it:

1. Load the stylesheet largetable.css and JavaScript largetable.js within the HTML file.

<link rel="stylesheet" href="largetable.css" />
<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="largetable.js"></script>

2. Call the performance to the HTML table and allow the Maximize performance.

<table>
  <tr>
    <th>Col 1</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
  <tr>
    <th>Col 2</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
  <tr>
    <th>Col 3</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
  <tr>
    <th>Col 4</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
  <tr>
    <th>Col 5</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
  <tr>
    <th>Col 6</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
  <tr>
    <th>Col 7</th>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>
  </tr>
</table>

3. Trigger an event when toggling the fullscreen mode.

$("table").largetable({
  enableMaximize: true
}).on("toggleMaximize", function() {
  console.log("toggleMaximize event");
})

4. Trigger an event when maximized.

$("table").largetable({
  enableMaximize: true
}).on("maximize", function () {
  console.log("maximize event");
})

5. Trigger an event when unmaximized.

$("table").largetable({
  enableMaximize: true
}).on("unmaximize", function () {
  console.log("unmaximize event");
});

Expand Wide HTML Table To Fullscreen, largetable Plugin/Github


See Demo And Download

Official Website(edinum): Click Here

This superior jQuery/javascript plugin is developed by edinum. For extra Advanced Usages, please go to the official website.

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

jquery-cookie-consent

Simple jQuery Cookie Consent Plugin

jquery.cookie-consent is a simple jQuery plugin to request consent to use cookies. An easy-to-use and highly customizable cookie consent bar that informs your visitors of the use…

Timepicker-Plugin-for-jQuery

Timepicker JavaScript Plugin for jQuery Inspired by Google Calendar

jquery.timepicker is a lightweight jQuery timer plugin inspired by Google Calendar. It supports both mouse and keyboard navigation and weighs 5.5KB minified and compact. Features: Highly customizable…

angular-ngx-carousel-slider

A Lightweight, Touchable, and Responsive Angular Universal Carousel Library

ngxCarousel is a lightweight, tactile, and responsive library for creating an angular carousel. No dependencies, no more hammer. Must Read: Angular Responsive Image Slider With Lightbox Popup…

random-number-picker

Generate a Random Number Picker In Vanilla JavaScript

Random Number Picker is a Vanilla JS-based number picker that allows you to generate a random number within a specified range. Must Read: Generating Lottery Numbers Using…

Nepali-Date-Picker-jQuery-Plugin

Nepali Date Picker jQuery Plugin | nepaliDatePicker

Nepali Date Picker is a customizable, easy-to-use, and input-based date picker plugin mostly based on the Nepali calendar. Users can choose a Nepali date in the navigable…