Added custom scroll bars and separated the table header from the tables for Sales and the Graphs tables.

This commit is contained in:
Wynne Crisman
2017-10-08 08:56:15 -07:00
parent 210517a5c2
commit b5ac9fd249
44 changed files with 4939 additions and 245 deletions

View File

@@ -2,6 +2,9 @@
import './Sales.html';
import '/imports/util/selectize/selectize.js';
import swal from 'sweetalert2';
//import 'malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js';
//import 'jquery-mousewheel';
//import 'malihu-custom-scrollbar-plugin';
/**
* Notes:
@@ -34,6 +37,20 @@ Template.Sales.onCreated(function() {
Session.set(PREFIX + 'saleCount', Meteor.call('getSalesCount', Session.get(PREFIX + 'searchQuery')));
});
});
Template.Sales.onRendered(function() {
//$('.tableContainer').mCustomScrollbar();
$(".tableContainer").mCustomScrollbar({
scrollButtons:{enable:true},
theme:"light-thick",
scrollbarPosition:"outside"
});
//(function($){
// $(window).on("load",function(){
// $(".tableContainer").mCustomScrollbar();
// });
//})(jQuery);
//$('#test').mCustomScrollbar();
});
Template.Sales.onDestroyed(function() {
if(Template.Sales.salesSubscription) {
Template.Sales.salesSubscription.stop();