How to force an initial render on q-tab-panel? #11252
Unanswered
baaskoen
asked this question in
General - Components / Directives / etc
Replies: 1 comment 2 replies
-
3 years no answer ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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