No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [Solved] [v1-beta] QTab Close Button

    Help
    2
    4
    831
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • spyke113
      spyke113 last edited by spyke113

      I want to place the close button in default slot QTab (QRouteTab to be more precise), but I can’t bring it to the top level. That is, the button doesn’t change the style when you hover and the event click doesn’t work.

            <q-tabs
              align="left"
              name="tab"
              v-model="selectedTab"
              inline-label
              no-caps
              dense
              shrink
            >
              <q-route-tab
                :key="tab.id"
                :icon="tab.icon"
                :name="tab.id"
                :to="{ name: tab.route }"
                v-for="tab in tabs"
                :label="$t(tab.label)"
                exact
              >
                <q-btn
                  @click="closeTab(tab)"
                  flat
                  icon="close"
                  round
                  class="z-top"
                />
              </q-route-tab>
            </q-tabs>
      

      Class z-top or z-max doesn’t help. Please, help. Thanks!

      Exapmle

      Pkg quasar........ v1.0.0-beta.13
      Pkg @quasar/app... v1.0.0-beta.13

      1 Reply Last reply Reply Quote 0
      • spyke113
        spyke113 last edited by

        Can anyone help?

        1 Reply Last reply Reply Quote 0
        • D
          dsl101 last edited by

          Same problem here—I made a codepen for easier experimentation: https://codepen.io/dsl101/pen/WmVbOE

          1 Reply Last reply Reply Quote 0
          • spyke113
            spyke113 last edited by spyke113

            Solution:
            QTab had no-pointer-events class, just add all-pointer-events to a element inside the QTab who needs be clickable. ©
            Many thanks to @Tobias-Mesquita and khuguet on Discord channel!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post