Build Responsive Tabbed Widgets with GridTab

It’s always easier to build websites regulating open source tools rather than reinventing a wheel. These collection operation from libraries to smaller plugins though we can find a resolution for fundamentally anything.

The unusual jQuery GridTab plugin is one excellent example. It allows we to set adult a tradition grid, define a breakpoints, and create a manageable tabbed widget that suits any website.

You can supplement your possess CSS classes or work with existent ones to emanate a add-on underline that fits your design. This plugin also supports navigation elements for next/prev controls and switching between tabs.

Installation is a zephyr and it usually requires a jQuery library as a dependency. Once that’s installed, we can squeeze GridTab from npm or download it directly from GitHub.

Keep in mind this tabbed widget plugin has a default style, so it does have a separate CSS stylesheet on tip of a JS plugin file. But, we can always combine this CSS into your possess to revoke HTTP requests.

To initialize a plugin, we simply pass a total grid size along with any discretionary parameter (all listed on GitHub).

Here’s a elementary initialization script:

$(document).ready(function() {
	$('#gridtab-1').gridtab({
		grid:3
	});
});

Settings embody custom selectors, responsive styles, border/padding/color settings, and of course, a callback function.

You competence be extraordinary to see how this all works and what it looks like in your browser. Check out a “Demos” section to see a few examples, including raw source code we can copy.

GridTab mobile responsiveGridTab mobile responsive

Most people consider of tabs as facilities for tiny form widgets. However, portfolio websites can also make use of grids with tabbed features and a GridTab plugin is a best apparatus for nailing this effect.

Everything we need to know, including full documentation, can be found on a main GridTab page. This also includes a couple to a GitHub repo so we can crop by a source and start customizing your possess manageable tabbed grids.

Add Comment