Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load the scanner in the background #52

Open
isaiahfisher opened this issue Feb 28, 2023 · 0 comments
Open

Load the scanner in the background #52

isaiahfisher opened this issue Feb 28, 2023 · 0 comments

Comments

@isaiahfisher
Copy link

I want to hide the scanner in a modal, but also still have the scanner load in the background. Ideally, the user would be unable to open the modal until the scanner has finished loading. Is there a way to kick off the loading process without rendering the component?

for reference here is my template:

<template>
    <div>
        <div>
            <button @click="toggleModal" class="text-primary">
                <i class="fas fa-barcode"></i>
            </button>
        </div>
        
        <b-modal 
            title="Scan a Barcode"
            v-model="showModal"
            scrollable
            centered
            size="huge"
            hide-footer
            @cancel="toggleModal"
        >
         <!-- todo: implement scanner here -->
         <StreamBarcodeReader @decode="handleScan"></StreamBarcodeReader>
        </b-modal>
    </div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant