From fd34b284b0a2cdcce5e827c3d5d01a60d755fb3a Mon Sep 17 00:00:00 2001 From: Stephen Date: Fri, 31 Jan 2014 17:14:58 +0100 Subject: [PATCH] Added support for accordions --- README.md | 14 ++-- demo/index.html | 47 +++++++++++++- js/bootstrap-remote-tabs.js | 110 ++++++++++++++++++++++---------- js/bootstrap-remote-tabs.min.js | 4 +- 4 files changed, 133 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 2fa097d..e253194 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Bootstrap tabs remote data plugin +Bootstrap remote data plugin ===================== Author: Stephen Hoogendijk - TheCodeAssassin @@ -8,9 +8,9 @@ This plugin uses the jQuery loadmask plugin by Sergiy Kovalchuk. ================================================ -Simple boostrap plugin to allow tabs to fetch their data from a remote source +Simple boostrap plugin to allow tabs and accordions to fetch their data from a remote source -*The script is only 1.7k compressed!* +*The script is only 2.5k compressed!* Requirements ============ @@ -43,14 +43,20 @@ You can use the following properties to enable remote data tabs: Check the demo for details on how to use this plugin. +*Note: The properties are still named data-tab due to backwards compatibility* + Note ==== -This plugin hooks into the bootstrap tabs 'show' event. In order to use a custom event callback, you can provide data-tab-callback +This plugin hooks into the bootstrap tab/accordion 'show' event. In order to use a custom event callback, you can provide data-tab-callback to let the plugin execute your custom callback. If you want a callback to be fired after the show event, use the native shown event. Changelog === +Version 1.1.1 +------ +Added support for accordions + Version 1.1.0 ------ diff --git a/demo/index.html b/demo/index.html index 69f22b9..56ca059 100755 --- a/demo/index.html +++ b/demo/index.html @@ -9,7 +9,7 @@ @@ -23,7 +23,9 @@

Bootstrap tabs remote data plugin demo

+
+

Tabs demo