No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. ellalves
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Groups 0

    Everton Alves

    @ellalves

    Desenvolvedor Web - back-end, com conhecimentos em PHP, MySQL, CSS, JS e HTML5. Professor de Matemática por formação e apaixonado pela web e tecnologias. Sempre preocupado em fazer o melhor da maneira mais simples possível!

    0
    Reputation
    17
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website ellalves.net.br

    ellalves Follow

    Latest posts made by ellalves

    • Usando plugin cordova sqlite storage no Quasar framework versão 1.0-beta

      Fiz esse post curto sobre o uso do plugin cordova-sqlite-storage no Quasar, o texto está em pr-br.

      https://ellalves.net.br/blog/usando-plugin-cordova-sqlite-storage-no-quasar-framework

      posted in Useful Tips (NEW)
      E
      ellalves
    • RE: 'cordova-plugin-camera' with Quasar

      @Kevin ```
      Código completo!

      <template>
        <q-page class="flex flex-center">
          <q-btn color="primary" label="Get Picture" @click="captureImage" />
          <q-img
            :src="imageSrc"
            placeholder-src="statics/quasar-logo.png"
            :alt="'Imagem: ' + imageSrc" id="photo"
          />
        </q-page>
      </template>
      
      <script>
      export default {
        data () {
          return {
            imageSrc: ''
          }
        },
      
        methods: {
          captureImage () {
            navigator.camera.getPicture(
              data => { // on success
                this.imageSrc = `data:image/jpeg;base64, ${data}`
                // document.getElementById('photo').src = data
                alert(this.imageSrc)
              },
              () => { // on fail
                this.$q.notify('Não foi possível acessar a câmera do dispositivo.')
              },
              {
                // camera options
                quality: 50,
                destinationType: navigator.camera.DestinationType.DATA_URL,
                encodingType: navigator.camera.EncodingType.JPEG,
                MEDIATYPE: navigator.camera.MediaType.PICTURE,
                sourceType: navigator.camera.PictureSourceType.CAMERA,
                mediaType: navigator.camera.MediaType.PICTURE,
                cameraDirection: navigator.camera.Direction.BACK,
                targetWidth: 300,
                targetHeight: 400
              }
            )
          }
        }
      }
      </script>
      posted in Help
      E
      ellalves
    • RE: 'cordova-plugin-camera' with Quasar

      @Kevin O meu ta igual ao seu a diferença é que nas options eu pego a imagem com: destinationType: navigator.camera.DestinationType.DATA_URL

      posted in Help
      E
      ellalves