Use availabel methods of quasar-components



  • How can i use the available methods for the different quasar-components?
    For example i have a modal in my own component, which i want to open when component is created:
    <template>

    <div id=“login-view” class=“layout-padding”>
    <q-modal ref=“maximizedModal” maximized :content-css="{padding: ‘50px’}">
    <h4>Maximized Modal</h4><p>This one is maximized on bigger screens too.</p>
    </q-modal>
    </div>
    </template>

    <script>
    import { QModal } from ‘quasar’

    export default {
    created () {
    this.$refs[‘maximizedModal’].open() // <-- How to achieve this??
    }
    }
    </script>



  • ok - was a misunderstanding with vue js lifehooks.

    now i use mounted() and it work’s


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.