![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.