Repeater can be useful for creating static components.
Of course we can dynamically create Tabs component with Repeater inside,
but it's spike solution!
Yes, we need dynamic qml object creation, but only for using like that:
var myNewTab = component.createObject(tabs)
Just think what if I want to display the same tab in two Tabs components?
It's impossible without dynamic tabs management, like
tabsItem.tabs.add(...)
2013/5/7 Svenn-Arne Dragly <email address hidden>
> I think it would be useful to change the number of Tabs dynamically at
> runtime. I.e. for the RSS reader, where each tab could represent a
> feed, and the number of tabs needed would be known after reading the
> number of feeds from the database.
>
> Is this possible with a Repeater? For instance by changing the
> Repeater's model property? (I have very little experience with the
> Repeater component).
>
> On Tue 07 May 2013 01:39:48 PM CEST, Tim Peeters wrote:
> > Is this the same bug as
> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1167568 ?
> > This MR
> https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/tabfix/+merge/161902makes Tabs work with a Repeater inside. Is that sufficient, or do you need
> additional functionality?
> >
> > ** Changed in: ubuntu-ui-toolkit
> > Status: Confirmed => Incomplete
> >
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1124071
>
> Title:
> [tabs] Cannot add Tabs programmatically
>
> Status in Ubuntu UI Toolkit:
> Incomplete
> Status in Ubuntu UX bugs:
> Confirmed
>
> Bug description:
> There seems to be no easy way to add a Tab to Tabs programmatically.
>
> I would be nice to be able add, remove and edit Tabs dynamically. So
> far I haven't found a way to do this.
>
> I have made an Android style ViewPager based on ListView. It is quite
> easy to update the pages with ListModel methods.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1124071/+subscriptions
>
I agree with Svenn-Arne.
Repeater can be useful for creating static components. createObject( tabs)
Of course we can dynamically create Tabs component with Repeater inside,
but it's spike solution!
Yes, we need dynamic qml object creation, but only for using like that:
var myNewTab = component.
Just think what if I want to display the same tab in two Tabs components? tabs.add( ...)
It's impossible without dynamic tabs management, like
tabsItem.
2013/5/7 Svenn-Arne Dragly <email address hidden>
> I think it would be useful to change the number of Tabs dynamically at /bugs.launchpad .net/ubuntu- ui-toolkit/ +bug/1167568 ? /code.launchpad .net/~tpeeters/ ubuntu- ui-toolkit/ tabfix/ +merge/ 161902makes Tabs work with a Repeater inside. Is that sufficient, or do you need /bugs.launchpad .net/bugs/ 1124071 /bugs.launchpad .net/ubuntu- ui-toolkit/ +bug/1124071/ +subscriptions
> runtime. I.e. for the RSS reader, where each tab could represent a
> feed, and the number of tabs needed would be known after reading the
> number of feeds from the database.
>
> Is this possible with a Repeater? For instance by changing the
> Repeater's model property? (I have very little experience with the
> Repeater component).
>
> On Tue 07 May 2013 01:39:48 PM CEST, Tim Peeters wrote:
> > Is this the same bug as
> https:/
> > This MR
> https:/
> additional functionality?
> >
> > ** Changed in: ubuntu-ui-toolkit
> > Status: Confirmed => Incomplete
> >
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> [tabs] Cannot add Tabs programmatically
>
> Status in Ubuntu UI Toolkit:
> Incomplete
> Status in Ubuntu UX bugs:
> Confirmed
>
> Bug description:
> There seems to be no easy way to add a Tab to Tabs programmatically.
>
> I would be nice to be able add, remove and edit Tabs dynamically. So
> far I haven't found a way to do this.
>
> I have made an Android style ViewPager based on ListView. It is quite
> easy to update the pages with ListModel methods.
>
> To manage notifications about this bug go to:
> https:/
>