Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 151
onpoweroff event, oncoverok event
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 151 highlights
Chapter 4 ePOS-Print API onpoweroff event Registers a callback function to obtain a non-response event. Object type Function () Example oncoverok event Registers a callback function to obtain a cover close event. Object type Function () 4 Example 151
151
Chapter 4
ePOS-Print API
4
onpoweroff event
Registers a callback function to obtain a non-response event.
Object type
Function ()
Example
oncoverok event
Registers a callback function to obtain a cover close event.
Object type
Function ()
Example
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var epos = new epson.ePOSPrint(address);
epos.onpoweroff = function () {
alert('poweroff');
};
epos.open();
//-->
</script>
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var epos = new epson.ePOSPrint(address);
epos.oncoverok = function () {
alert('coverok');
};
epos.open();
//-->
</script>