Javascript: BarcodeCollection.remove Method
Description
Removes a barcode.
Syntax
<void> BarcodeCollection.remove(<BarcodeFrame> barcode, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| barcode | Specifies the barcode to remove. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates BarcodeCollection.remove in a practical document-editing workflow. It removes a barcode.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function remove(barcode) {
TXTextControl.barcodes.remove(
barcode,
function() {
console.log("remove completed.");
},
onTxError
);
}