Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

printJS table border code example

printJS table border code example

npm install print js

 

function printDiv() {
    printJS({
      printable: 'table',
      type: 'html',
      style: 'td { border: 1px solid #d9d9d9 !important;} th { border: 1px solid #d9d9d9 !important;}'
    });
  }

 

 <table class="table table-bordered" id="table">
              <tr>
                <th className="col-sm-5">Değer</th>
                <td className="col-sm-7">Veri</td>
              </tr>
</table>
printjs
printjs

Leave a Reply