Quasar: How to access component methods from parent?

Created on 10 Mar 2017  路  3Comments  路  Source: quasarframework/quasar

First of all, many thanks to Razvan for this amazing framework and yet another release!
Does anyone know how to access the component methods described in the docs?
For example:
http://quasar-framework.org/components/slider.html
has goToSlide and toggleFullscreen()

http://quasar-framework.org/components/pull-to-refresh.html
has @trigger
Can I invoke those programmatically from within the parent component?

All 3 comments

Give the function definition for trigger inside the child component and bind it to @trigger
From the parent , give a reference to the child component by defining ref=""

Then you can trigger the trigger event by calling $refs..toggleFullscreen() This should work 馃憤

Hi, please use forum for questions. Thanks!

@jonafrankbrimma Thanks :)
@rstoenescu Yes, sorry about that.

Was this page helpful?
0 / 5 - 0 ratings