From 552905e840d5c865d716b87a45da9f1ebb36c171 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 13 Jul 2016 10:50:29 -0500 Subject: [PATCH] Docs: Clarify & expand grouping widget usage --- docs/example-widget-grouping.html | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/example-widget-grouping.html b/docs/example-widget-grouping.html index b40022c5..543b2770 100644 --- a/docs/example-widget-grouping.html +++ b/docs/example-widget-grouping.html @@ -220,10 +220,6 @@ tr.group-header.collapsed td i { - -

Options

@@ -602,6 +598,19 @@ group_dateString : function(date, config, $header ) {

Before v2.24.1, this demo only used the "shortDate" parser on the date column, so when "group-date-week" or "group-date-time" were set, group headers would repeat.

+

Methods

+
+

Toggle all Groups

+ Target the group header(s) and trigger a "toggleGroup" event to show/hide rows associated with that group. + +
// "toggle" class name added to a button/link
+$('.toggle').click(function(){
+  // show/hide all groups - table must be grouped (sorted or force grouping)
+  $('table').find('.group-header').trigger('toggleGroup');
+  return false;
+});
+
+

Globalization

jQuery Globalize

@@ -779,6 +788,12 @@ $(function() {

Demo

+ + Numeric column:
(includes subtotals)
Animals column:

Date column: