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
    1. Home
    2. rubs
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 52
    • Best 5
    • Groups 0

    Best posts made by rubs

    • Omissions in QTabs component

      The QTabs component is quite useful, but in my opinion it has some omissions:

      • It’s not redrawn automatically when a QTab item is inserted or removed – especially the navigation arrows visibility doesn’t change. I kinda solved this one by using a ready flag that gets updated when a new item is inserted, but it would be easier if the component did it already.
      • When inserted, new tabs that go past the current width are not scrolled into view. Apparently there are not events for doing this.
      • The mouse scroll wheel doesn’t do anything. Capturing the wheel events and sending clicks to the arrows didn’t work for me:
      wheel_scroll: function(event)
      {
        let arrows = this.$el.getElementsByClassName('q-tabs__arrow');
        let evt = document.createEvent("MouseEvents");
        evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
        // Here I chose one arrow for testing, but nothing happened:
        arrows[1].dispatchEvent(evt);
      }
      
      • It would be nice if users were able to drag individual tabs to change their order.

      Would exposing some extra events and properties allow these actions? I don’t know. Any help is appreciated. Thanks!

      posted in Framework
      rubs
      rubs
    • RE: Tooltips don't show on disabled buttons

      Sorry, I thought the thread title made the point clear. I believe that tooltips may be even more important when a QBtn is disabled (to inform users the reason why it is disabled, for example). So I think tooltips should be enabled whether QBtns are disabled or not. It should be left to the programmers to decide if they want it to hide tooltips (e.g. using v-if). Wrapping a control in a div or span works, but it’s more of a trick than a solution IMO. Hope it’s clearer now.

      posted in Framework
      rubs
      rubs
    • QTree select behavior

      Hi,

      I’m using :selected.sync="selected" in my QTree. When I click a node once it is selected. If I click it again it gets deselected. I’d like to change this behavior in such a way that when a selected node is clicked again it just does nothing, i.e. keeps the selection until I click another node. How can I do that?

      Thanks in advance,

      posted in Help
      rubs
      rubs
    • RE: Custom arrow icon in QTree

      Thanks! I’ll try it. Looks much better than my CSS hack 😉

      posted in Framework
      rubs
      rubs
    • RE: Custom arrow icon in QTree

      @viswanathNK Thanks, that’s exactly what I wanted!

      posted in Framework
      rubs
      rubs