Added custom scroll bars and separated the table header from the tables for Sales and the Graphs tables.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user