← Back to team overview

touch-packages team mailing list archive

[Bug 1534673] [NEW] [AdaptivePageLayout] Add function to clear higher columns of pages

 

Public bug reported:

Please add a function that will allow the developer to remove pages from
any higher-numbered columns than itself. This is similar to
removePages(targetPage) except that it does not remove the targetPage or
any pages in it's column.

Suggestion:

removeChildPages(targetPage)

Use Case:

in uReadIt I have a SubredditGalleryPage, which allows the user to swipe
back and forth through images from a subreddit like /r/funny. This will
occupy the 2nd column in my layout. Each image can have a CommentsPage
for it's comments opened in the 3rd column. When a CommentsPage is
opened for an image in SubredditGalleryPage, and the user changes to
another image, I would like to close the CommentsPage and any child of
it (such as a PostMessagePage)

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Wishlist
         Status: New

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

Title:
  [AdaptivePageLayout] Add function to clear higher columns of pages

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Please add a function that will allow the developer to remove pages
  from any higher-numbered columns than itself. This is similar to
  removePages(targetPage) except that it does not remove the targetPage
  or any pages in it's column.

  Suggestion:

  removeChildPages(targetPage)

  Use Case:

  in uReadIt I have a SubredditGalleryPage, which allows the user to
  swipe back and forth through images from a subreddit like /r/funny.
  This will occupy the 2nd column in my layout. Each image can have a
  CommentsPage for it's comments opened in the 3rd column. When a
  CommentsPage is opened for an image in SubredditGalleryPage, and the
  user changes to another image, I would like to close the CommentsPage
  and any child of it (such as a PostMessagePage)

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


Follow ups