Constructor
new BarcodeScannerPanel(config)
- Copyright:
- ParaSQL LLC 2022-2024. All rights reserved.
- License:
Example
// usage example for a click event on a button
function (event) {
new parasql.ui.BarcodeScannerPanel({
callback: function(scanStr) {
// this code is run when a valid barcode is detected
let searchField = parasql.app.getWidgetById('ID2627');
searchField.setDataValue( new parasql.schema.DataValue(scanStr) );
let searchButton = parasql.app.getWidgetById('ID2630');
searchButton.performClick();
}
}).show();
}
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
Extends
Methods
getContentDiv() → {HTMLElement}
- Overrides:
Returns:
Returns this panel's content div.
- Type
- HTMLElement
hide()
Overridden to stop video capture when panel hidden.
- Description:
Overridden to stop video capture when panel hidden.
- Overrides:
show()
Displays this ModalPanel.
- Description:
Displays this ModalPanel.
- Overrides: