Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic q-tab #595

Closed
wilcorrea opened this issue May 27, 2017 · 3 comments
Closed

Dynamic q-tab #595

wilcorrea opened this issue May 27, 2017 · 3 comments
Milestone

Comments

@wilcorrea
Copy link
Contributor

Software version

Quasar: v0.13.9
OS: Ubuntu 14.04
Node: v7.3.0
NPM: 3.10.10
Browsers: Chrome
iOS: N/A
Android: N/A
Any other software related to your bug:

What did you get as the error?

Im trying use the tabs with dynamic contents

What were you expecting?

The component rendered without errors

What steps did you take, to get the error?

I just create an array and used v-for to mount the markup

<template>
  <div>
    <q-tabs v-for="__tab in tabs" :refs="$refs">
      <q-tab :name="__tab.value" icon="message">
        {{ __tab.label }}
      </q-tab>
    </q-tabs>
    <div v-for="__tab in tabs" :ref="__tab.value">
      {{ __tab.label }}
    </div>
  </div>
</template>

<script>
  export default {
    data: () => ({
      tabs: [
        {
          value: 'test',
          label: 'Test'
        }
      ]
    })
  }
</script>

<style lang="stylus">
</style>

The output of console. The component cant manage the divs what will be displayed. I believe what the refs are the problem. Any suggestion?

image

@rstoenescu rstoenescu added this to the v0.14 milestone May 27, 2017
@rstoenescu
Copy link
Member

Hi, this is obsolete now. Tabs have been completely reworked in v0.14.

@wilcorrea
Copy link
Contributor Author

Thnks 👍

@rstoenescu
Copy link
Member

I just noticed... you are using v-for on <q-tabs> and NOT on <q-tab>...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants