From aa3609e435a442748ad677337ad74e2c41364677 Mon Sep 17 00:00:00 2001 From: Jazzdak Date: Wed, 8 Jul 2015 10:51:32 +0200 Subject: [PATCH] Added compatibility with bootstrap + title=\"{{ctx.content}}\" to cell template to have full text on hover when content is truncated by bootstrap ex. "conte..." + column: column in cell params to access column paramters + data-title=\"{{ctx.column.text}}\" for compatibility with bootstrap responsive-table-line --- dist/jquery.bootgrid.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/jquery.bootgrid.js b/dist/jquery.bootgrid.js index 469cc6a..43bbc3b 100644 --- a/dist/jquery.bootgrid.js +++ b/dist/jquery.bootgrid.js @@ -621,6 +621,7 @@ column.converter.to(row[column.id]), cssClass = (column.cssClass.length > 0) ? " " + column.cssClass : ""; cells += tpl.cell.resolve(getParams.call(that, { + column: column, content: (value == null || value === "") ? " " : value, css: ((column.align === "right") ? css.right : (column.align === "center") ? css.center : css.left) + cssClass, @@ -1355,7 +1356,7 @@ actionDropDownCheckboxItem: "
  • ", actions: "
    ", body: "", - cell: "{{ctx.content}}", + cell: "{{ctx.content}}", footer: "

    ", header: "

    ", headerCell: "{{ctx.column.text}}{{ctx.icon}}", @@ -2034,4 +2035,4 @@ // ============ $("[data-toggle=\"bootgrid\"]").bootgrid(); -})(jQuery, window); \ No newline at end of file +})(jQuery, window);