Browse Source

[js] Add missing print() method to Window (Func IsWindowPrintEnabled) (#7405)

George Corney 7 years ago
parent
commit
0b0ec8ce31
1 changed files with 6 additions and 0 deletions
  1. 6 0
      std/js/html/Window.hx

+ 6 - 0
std/js/html/Window.hx

@@ -424,6 +424,12 @@ extern class Window extends EventTarget
 	**/
 	function prompt( ?message : String = "", ?default_ : String = "" ) : String;
 	
+	/**
+		Opens the Print Dialog to print the current document.
+		@throws DOMError
+	**/
+	function print() : Void;
+	
 	/**
 		Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.
 		@throws DOMError