From 6a0e219d6f30cc07f1791766bba9b7583714847f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Vita=CC=81sek?= Date: Thu, 19 Mar 2015 13:22:48 +0100 Subject: [PATCH] Making it possible to specify tooltips for column headers. --- lib/jquery.jtable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jquery.jtable.js b/lib/jquery.jtable.js index 869af246..98a2b461 100644 --- a/lib/jquery.jtable.js +++ b/lib/jquery.jtable.js @@ -326,6 +326,10 @@ THE SOFTWARE. .data('fieldName', fieldName) .append($headerContainerDiv); + if (field.tooltip) { + $th.prop('title', field.tooltip); + } + this._jqueryuiThemeAddClass($th, 'ui-state-default'); return $th;