-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add roll printing sample * Copied heavily from existing printing sample * Changed functionality from existing printing sample as follows: * Only display printers that support roll printing * In table, create a row for each unique width for each printer * Fix wording in README * Update readme to list a milestone for bug to get fixed * Update api-samples/printing/roll-printing/README.md Co-authored-by: Joe Medley <[email protected]> * Update api-samples/printing/README.md Co-authored-by: Joe Medley <[email protected]> * Convert a function call to a promise. * Clean up a few errors setting element IDs. Remove the main cancel button that is no longer used. Instead, the cancel button that gets created in the print job table is the one that should be used. * Consolidate the roll-printing sample with the regular sample There is now a checkbox on the main UI to select roll printers or all printers. For roll printing, this sample now demonstrates how to check if the printer is capable of roll printing, if the printer is capable of trimming the paper after printing, and how the media length can be a variable value. * Update api-samples/printing/README.md Co-authored-by: Oliver Dunk <[email protected]> * Update api-samples/printing/printers.js Co-authored-by: Oliver Dunk <[email protected]> * Simplify fuction to use find instead of filter Update README to link to roll printing info. * Use new page instead of popup * Update api-samples/printing/README.md Co-authored-by: Joe Medley <[email protected]> --------- Co-authored-by: Joe Medley <[email protected]> Co-authored-by: Oliver Dunk <[email protected]>
- Loading branch information
1 parent
0096d67
commit 37b9846
Showing
6 changed files
with
125 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
chrome.action.onClicked.addListener(() => { | ||
chrome.tabs.create({ | ||
url: 'printers.html' | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.