Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
angular-print
Advanced tools
Angular module that allows the user to selectively print, as well as provides optimizations for printing a table.
THIS REPO IS NOT ACTIVELY MAINTAINED and has several incompatibilities with most browsers. I'm happy to test/review/merge pull requests and am open to passing ownership of this project to another.
An Angular module that allows users to selectively print elements, as well as provides optimizations for printing. By default, printing margins are minimized.
$ bower install angular-print
<!-- CSS -->
<link media="print" rel="stylesheet" href="public/angularPrint/angularPrint.css">
<!-- JS -->
<script src="public/angularPrint/angularPrint.js"></script>
(function() {
'use strict';
angular.module('yourApp', ['AngularPrint', '...']);
})();
<div>
<div print-section>
I'll print
<p>Me, too!</p>
</div>
<div>I won't</div>
</div>
<div print-section>
<div print-only>
I'll print, but until then nobody wants me
<p>Me, too!</p>
</div>
<div>Me, too! Except that people still want to look at me in the meantime...</div>
</div>
<div print-section>
<div print-hide>
I won't print
<p>Me, either</p>
</div>
<div>I'll print, but those bozos upstairs are still taking up space</div>
</div>
<div print-section>
<div print-remove>
I won't print
<p>Me, either</p>
</div>
<div>I'll print, and those bozos upstairs will finally stop making such a ruckus</div>
</div>
<!--Pigs do not yet fly, so this div, despite having print-section, will not print-->
<div print-section print-if="pigsFly"></div>
<!--Sam IS the best, so this div will print, despite not having print-section-->
<div print-if="samIsTheBest"></div>
<button print-btn>Doesn't matter where you put me</button>
<span print-btn>I will make anything cause a print</span>
<p print-btn>to happen if you click me</p>
<button print-landscape>Doesn't matter where you put me</button>
<span print-landscape>I will cause any print</span>
<p print-landscape>to be landscape</p>
<button print-avoid-break>This element won't get split by page breaks</button>
<thead>
and <tbody>
tags are used correctly.This example shows adjustments to an already-visible table in order to tailor it for printing
<table print-table="people">
<thead>
<tr>
<td print-remove>Unwanted field</td>
<td>Name</td>
<td>Address</td>
<td>Phone</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="person in people">
<td print-remove>{{person.unwantedInfo}}</td>
<td>{{person.name}}</td>
<td>{{person.address}}</td>
<td>{{person.phone}}</td>
</tr>
</tbody>
</table>
This example shows a table made to only be visible during printing
<table print-table="people" print-only>
<thead>
<tr>
<td>Name</td>
<td>Address</td>
<td>Phone</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="person in people">
<td>{{person.name}}</td>
<td>{{person.address}}</td>
<td>{{person.phone}}</td>
</tr>
</tbody>
</table>
FAQs
Angular module that allows the user to selectively print, as well as provides optimizations for printing a table.
The npm package angular-print receives a total of 0 weekly downloads. As such, angular-print popularity was classified as not popular.
We found that angular-print demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.