diff --git a/js/sheetsee.js b/js/sheetsee.js index 2186a4cb..5c62f568 100644 --- a/js/sheetsee.js +++ b/js/sheetsee.js @@ -1,5 +1,5 @@ ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o opts.pagination) writePreNext(opts.tableDiv, currentPage, currentPage, totalPages, data, opts.pagination) } @@ -25362,12 +25362,14 @@ function clearPreNext() { } module.exports.table = table -function table(data, targetDiv) { - var templateID = targetDiv.replace("#", "") +function table(data, opts) { + if (opts.templateID) { + var templateID = opts.templateID + } else var templateID = opts.targetDiv.replace("#", "") var tableContents = ich[templateID]({ rows: data }) - $(targetDiv).html(tableContents) + $(opts.tableDiv).html(tableContents) } },{"icanhaz":2}]},{},[1]) ; \ No newline at end of file