How to force an initial render on q-tab-panel? #11252
Unanswered
baaskoen
asked this question in
General - Components / Directives / etc
Replies: 2 comments 2 replies
-
3 years no answer ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm trying to do exactly the same thing. Any solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm using q-tabs with q-tab-panels (with the
keep-alive
prop), each q-tab will start tomount
only when the tab will be active for the first time.However, sometimes I have components inside tabs that do essential things in their
created
ormounted
hooks. When the end user never clicks on a tab, these hooks will never be called.In other Vue Component libraries/frameworks there is usually a way to provide each tab with a prop that describes it should render immediately. For example
Ant Design Vue
allows aforceRender
boolean prop in theTabPane
component.And
Vuetify
has theeager
prop:https://vuetifyjs.com/en/api/v-tab-item/#props
Is there any way I can achieve this in Quasar?
Beta Was this translation helpful? Give feedback.
All reactions