← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1246758] Re: [tabs] Make TabBar usable standalone

 

** Changed in: ubuntu-ui-toolkit
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1246758

Title:
  [tabs] Make TabBar usable standalone

Status in Ubuntu UI Toolkit:
  Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Fix Released

Bug description:
  In the Unity8 Dash we want to use the TabBar component, this is now hard since TabBar is using
    property Item tabsItem
  where it gets all the interesting stuff from (model, currentindex)

  What I'd like to see is an api so that you can do something like

  TabBar {
      id: tabbar
      height: units.gu(7)
      width: units.gu(40)

      onSelectedTabIndexChanged: console.log("TabChanged",
  selectedTabIndex);

      tabs: someModel
  }

  ideally we'd also need a 
  property real currentButtonWidth: 0
  in the TabBar or in the TabBarStyle with the width of the current text so we can use it in some calculations

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1246758/+subscriptions