question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] provide tag property in QTab API like in QItem API

See original GitHub issue

Problem: I would like to realize a horizontal menu with QTabs API. It’s a mix of vue-router links and external links so I would like to mix QRouteTab and QTab - unfortunately QTab does not provide external links like QItem.

Solution: Provide tag property in QTab API like in QItem API e.g.

<q-tab label="Quasar v1" tag="a" target="_blank" href="https://v1.quasar.dev/" />

Alternative: I’ve tried several things. Among others surrounding q-tab with <a>-tag e.g. the clumsy

<a target="_blank" href="https://v1.quasar.dev/" style="text-decoration: none; color: inherit"><q-tab label="Quasar v1" /></a>

Looks ok at first glance but visual feedback is broken when switching the tab with TAB key.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkeye64commented, Jul 7, 2021

I made a codepen to play with that has QBtn and QBtnDropdown: https://codepen.io/Hawkeye64/pen/qBmZoVJ?editors=1010

Right away there is a couple of issues for consistency. The buttons don’t have the same “equal width” of the tabs. The QBtn has some margin going on so it doesn’t touch the top and bottom.

I am thinking, like QField for form items, a QTabWrapper would be nice, such that it can wrap something and make it somewhat behave like a QTab (the same width, underline selection, the same opacity, etc)

0reactions
hawkeye64commented, Jul 8, 2021

Brilliant! Thanks, @pdanpdan ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tabs - Quasar Framework
Tabs are a way of displaying more information using less window real estate. This page describes the tab selection part through QTabs, QTab...
Read more >
Is there an API to fetch tags related to a given tag? - Stack Apps
I would like to be able to access this through the API but I haven't been able to find an API which exposes...
Read more >
Quasar 0.17 - Features and Fixes - Steemit
The reasons are obvious since this is a client-side only browser API. ... QUpload "filter" property #1458; [Feature Request] Object as filter in...
Read more >
Quasar API Diff - gists · GitHub
Date of the component; Either use this property (along with a listener ... Stack icon and label vertically instead of on same line...
Read more >
QWidget Class | Qt Widgets 6.4.1
There are many subclasses which provide real functionality, such as QLabel, QPushButton, ... This property describes the widget's requested font.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found