Basictable

Basic Table jQuery or Vanilla JS plugin for simple responsive tables.
Alternatives To Basictable
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Frontend Stuff8,563
2 months ago7other
📝 A continuously expanded list of frameworks, libraries and tools I used/want to use for building things on the web. Mostly JavaScript.
Owlcarousel27,7338981025 months ago8April 20, 20181,152otherJavaScript
DEPRECATED jQuery Responsive Carousel.
Fancybox7,26224024a month ago23March 11, 2019140JavaScript
jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
Metro Ui Css6,9718422 days ago99June 23, 202267mitCSS
Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
Sidr2,936
135 years ago4February 17, 201621mitJavaScript
Sidr is a jQuery plugin for creating side menus and the easiest way for doing your menu responsive.
Izimodal2,13736310 months ago17May 30, 202285apache-2.0CSS
Elegant, responsive, flexible and lightweight modal plugin with jQuery.
Lightslider1,96761162 years ago6October 25, 2016273mitJavaScript
JQuery lightSlider is a lightweight responsive Content slider with carousel thumbnails navigation
Devextreme1,68920315519 hours ago594July 08, 202233otherJavaScript
HTML5 JavaScript Component Suite for Responsive Web Development
Jquery Rwdimagemaps1,411
4 years ago1August 16, 201667mitJavaScript
Responsive Image Maps jQuery Plugin
Flexnav1,214
67 years agoNovember 28, 201382unlicenseCSS
A jQuery plugin for responsive menus
Alternatives To Basictable
Select To Compare


Alternative Project Comparisons
Readme

Basic Table

A simple lightweight jQuery or Vanilla JS responsive table library. A library to setup tables for a basic responsive table stucture. Utilizing the techniques of http://css-tricks.com/responsive-data-tables/. This is to assists in those situations where the users don't necessarily have access or capacity to modify HTML such as input from a WYSIWYG.

View Demo (jQuery)

View Demo (Vanilla JS)

jQuery User Notes for 2.0.0

The jQuery version remains the same as 1.0.0. While the source remains unchanged there are three things to note when upgrading:

  • Distribution files are no longer in the root directory, they've moved to /dist/js/jquery.basictable.js and /dist/js/jquery.basictable.min.js,
  • The non-minified version is now a beautified version rather than the source file, and
  • The minified version is no longer compressed with uglifyjs, it's compressed using Tercer.

These changes should have no impact on the way it functions in comparison with 1.x.

Getting Started

jQuery

Include the CSS and jQuery library in the <head> of your page.

<link rel="stylesheet" type="text/css" href="basictable.min.css" />

<script src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.basictable.min.js"></script>

Initiate on any table(s) with:

$('table').basictable();

Vanilla JS

Include the CSS and basictable library in the <head> of your page.

<link rel="stylesheet" type="text/css" href="basictable.min.css" />

<script type="text/javascript" src="basictable.min.js"></script>

Initiate on any table(s) with:

new basictable('table');

Options

Options are applicable to both the jQuery and Vanilla JS.

breakpoint

integer default: null

Define the breakpoint (viewport's width) when the table will engage in responsive mode. If the containerBreakpoint is null (which is the default) the value will be 568px.

containerBreakpoint

integer default: null

Define the breakpoint of the table's container when the table will engage in responsive mode.

contentWrap

boolean default: true

Wraps the original content within the cell in a span with class .bt-content, to help with CSS selection.

forceResponsive

boolean default: true

The library will always force the table into responsive mode once the breakpoint is met. If this is set to false the table will only change mode when the table itself is larger than its immediate parent's inner width.

noResize

boolean default: false

Disable Basic Table's JS resize. The table won't engage in responsive mode unless media query or another resize bind outside of Basic Table is defined.

tableWrap

boolean default: false

When the library is initialize create a div wrapper around the table with class .bt-wrapper. This wrapper will toggle an active class when the table mode changes.

showEmptyCells

boolean default: false

When true, empty cells will be shown.

header

boolean default: true

Set to false if table does not have a header row. Table will just be responsive with table body and optional footer.

Methods (jQuery)

start

Engage the table in responsive mode. This method can only run after the table has been initialized.

$('table').basictable('start');

stop

Toggle the table back to normal mode, removing the responsive look. This does not destory the Basic Table data and wrappers. The table will still work once the breakpoint is met.

$('table').basictable('stop');

destroy

Destroy the the responsive bind on the table. This will remove all data and generated wrappers from the table, returning it to its initial state.

$('table').basictable('destroy');

restart

Run destroy, setup then check without resetting the table data. Run this if the table dynamically updates.

$('table').basictable('restart');

Methods (Vanilla JS)

Methods demonstrated assuming you've defined the object as table.

const table = new basictable('.table');

start

Engage the table in responsive mode. This method can only run after the table has been initialized.

table.start();

stop

Toggle the table back to normal mode, removing the responsive look. This does not destory the Basic Table data and wrappers. The table will still work once the breakpoint is met.

table.stop();

destroy

Destroy the the responsive bind on the table. This will remove all data and generated wrappers from the table, returning it to its initial state.

table.destroy();

restart

Run destroy, setup then check without resetting the table data. Run this if the table dynamically updates.

table.restart();
Popular Responsive Projects
Popular Jquery Projects
Popular Web User Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Jquery
Table
Basic
Responsive
Vanilla Javascript
Breakpoint