Files
chrome-extensions-samples/api-samples/printing/printers.html
Joe Medley d7f3d83a55 Printer (#858)
* Add printer status listener.

* Show printer status in popup.

* Fix Status display.

* Implement cancelJob().

* Correct script typos.

* Add important keyword to CSS.

* Refactor element pointers.

* Rewrite callbacks to promises.

* Fix CSS.

* Fix variable name.

* Move Print button to front of line.

* Restore old style of submitJob().

* Fix bugs.

* adding print job table along with cancel button (#847)

* adding print job table along with cancel button

* make cancel button hidden conditionally and scroll to buttom after print button is clicked

* Fix spelling.

* Update api-samples/printing/printers.js

* Add README file.

* Readme corrections.

* Update api-samples/printing/README.md

* Update api-samples/printing/README.md

* Update api-samples/printing/README.md

* Create an addCell() function.

* Fix position of addCell().

* Rearange popup layout.

* More rearranging.

* Add a warning about the print job table.

* Feedback from Patrick.

* Lint and update strings.

---------

Co-authored-by: rayxu-google <120415990+rayxu-google@users.noreply.github.com>
2023-04-05 13:35:58 -07:00

55 lines
1.4 KiB
HTML

<!--
* Copyright 2020 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
-->
<!DOCTYPE html>
<html>
<head>
<title>Printers</title>
<link href="printers.css" rel="stylesheet" type="text/css" />
<script src="printers.js"></script>
</head>
<body>
<h2>Print Job:</h2>
<p>On some systems, the print job may leave the queue too quickly to be visible in this list.</p>
<div id="printJob">
<table id="printJobTable">
<thread>
<tr>
<th>Cancel</th>
<th>Job Id</th>
<th>Status</th>
</tr>
</thread>
<tbody id="printJobTbody"></tbody>
</table>
</div>
<h2>Printers:</h2>
<div id="statusDiv">
<p id="jobStatus">JobId: <div id="jobIdDiv"></div></p>
<button id="cancelBtn">Cancel Printing</button>
</div>
<div id="printers">
<table id="printersTable">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Description</th>
<th>URI</th>
<th>Source</th>
<th>Default</th>
<th>Recently used</th>
<th>Capabilities</th>
<th>Status</th>
<th>Print</th>
</tr>
</thead>
</table>
</div>
</body>
</html>