Decapod 0.7 Capture User Interface Configuration
Creation
Method |
|
---|---|
Description |
Instantiates the capturer component, which is the top level component for Capture page. |
Parameters |
|
Returns |
The capture component |
Examples |
var capturer = decapod.capturer("#myContainer", { selectors: { title: ".mySelector" } }); |
Component Selectors
Selectors
Some information about selectors and how they can be configured can be found here: Component Configuration Options - Selectors
title
Description |
The element that will be used to display the main title for the capturer. This should be an |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { title: ".myTitle" } }); |
captureButton
Description |
The element that will be used to trigger a capture. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { captureButton: ".myCaptureButton" } }); |
exportButton
Description |
The element that will be used to trigger a download of the captured images. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { exportButton: ".myExportButton" } }); |
load
Description |
The element that will house the status message and progress indicator for when the cameras are being checked. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { load: ".myLoad" } }); |
loadMessage
Description |
The element that will display the status message of the cameras being checked. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { loadMessage: ".myLoadMessage" } }); |
restart
Description |
The element used to refresh the page. Likely an <a>. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { restart: ".myRestart" } }); |
help
Description |
The element used to refer to the help documentation. Should be an <a> with the url to the help page. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { help: ".myHelp" } }); |
status
Description |
The element used to house the status component. Status messages for capturer will display here. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { status: ".myStatus" } }); |
preview
Description |
The element used to house the captureReviewer component. The captured images will display here. |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { preview: ".myPreview" } }); |
exportDesc
Description |
The element used to hold the message about the download (e.g. reminder to calibrate). |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { exportDesc: ".myExportDesc" } }); |
downloadFrame
Description |
The |
---|---|
Default |
|
Example |
decapod.capturer(".myContainer", { selectors: { downloadFrame: ".myDownloadFrame" } }); |
Styles
See the Decapod Styling guide for information on changing the appearance of Decapod.