Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

customize function (doc) datatable printable

Plain text12345678910111213141516{ extend: 'print',text: '<i class="fa fa-plus" aria-hidden="true"><span class="{{ App::isLocale('ar')? 'font-ar' : '' }}">@lang('master.print')</span></i>',                        title: '@lang('invoices.products')',                        messageTop: '{{ Auth::user()->office_name }}',                        className: 'btn btn-default',                        autoPrint: true,                         customize: function (win) {                            $(win.document.body).find('th').addClass('display').css('text-align', 'center');                            $(win.document.body).find('table').addClass('display').css('font-size', '16px');                            $(win.document.body).find('table').addClass('display').css('text-align', 'center');                            $(win.document.body).find('tr:nth-child(odd) td').each(function (index) {                                $(this).css('background-color', '#D0D0D0');                            });                            $(win.document.body).find('h1').css('text-align', 'center');                         }}
Comment

PREVIOUS NEXT
Code Example
Javascript :: convert c# to javascript online 
Javascript :: js get formatted time 
Javascript :: how to remove __proto__ from javascript object 
Javascript :: lite youtube embed react 
Javascript :: sum is not working in js 
Javascript :: useEfefct react 
Javascript :: notify jquery 
Javascript :: electron vue printer 
Javascript :: summernote mentions ajax 
Javascript :: detect localstorage limit 
Javascript :: interactive svg javascript 
Javascript :: check if array does not contain string js 
Javascript :: on enter to tab javascript 
Javascript :: react native fetch response code 
Javascript :: angularjs form validation on submit 
Javascript :: alpine js x-on click not working 
Javascript :: swiper js 
Javascript :: webpack.config.js 
Javascript :: if event keycode and click 
Javascript :: connect node with react 
Javascript :: how to link to certain section of a website in react 
Javascript :: server mail 
Javascript :: filter buttons react 
Javascript :: js filter text 
Javascript :: jquery is not defined error in wordpress 
Javascript :: array.filter in javascript 
Javascript :: jquery in javascript 
Javascript :: shell 
Javascript :: JavaScript if, else, and else if 
Javascript :: js extract properties from object 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =