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

    Controlling position of tabs in layout toolbar

    Help
    2
    2
    1380
    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.
    • D
      dsl101 last edited by

      Is it possible to get tabs to float left next to a toolbar title, with nothing but empty space to the right? Currently, the code below puts the title top left, and the tabs top right, which looks very odd on a wide desktop window. I tried applying the positioning classes to the tabs, but couldn’t get anything to change.

      Supplementary question - is it possible to make the q-toolbar-title clickable like a tab to get back to the ‘home’ page ('/')? I tried adding a click handler to it, but nothing seems to happen, and the mouse pointer would obviously need updating too.

      <template>
        <div>
          <q-layout>
            <div slot="header" class="toolbar">
              <q-toolbar-title>Page Title</q-toolbar-title>
              <q-tabs>
                <q-tab route="/route1">
                  First Tab
                </q-tab>
                <q-tab route="/route2">
                  Second Tab
                </q-tab>
              </q-tabs>
              <div></div>
            </div>
            <router-view></router-view>
          </q-layout>
        </div>
      </template>
      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Use CSS helper classes from here: http://quasar-framework.org/api/css-grid-layout.html
        to add the “space” you want, add an empty <div class="auto"></div> between title and tabs.

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