YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528050 (closed enhancement)

Reporter


bzbugs
Opened: 06/2/09
Last modified: 09/14/09
Status: closed
Type: enhancement
Resolution: fixed

Owner


Gopal Venkatesan
Target Release: 2.8.0
Priority: P3 (normal)
Summary: [bz 2132535] Navigation: Add support for pagination text
Description:

Carousels often have an additional navigation text that reads what page or photo a user is on. Examples include
"Page 2 of 5", "Photos 1-10 of 20", "Photo 1 of 3", etc.

One possible approach is to support passing a template where preset values are replaced using YAHOO.lang.substitute. There would be several possible values that could be replaced including
currentPage, totalPages, currentItem, totalItems, and itemsPerPage. Maybe others.

So the examples above would be passed in as "Page {currentPage} of {totalPages}", "Photos
{currentItem}-{itemsPerPage} of {totalItems}", "Photo {currentItenm} of {totalItems}". This would allow
the most flexibility.

see bz 2132535 for proposed solution from internal team

Type: enhancement Observed in Version: 2.6.0 PR1
Component: Carousel Severity: S3 (normal)
Assigned To: Gopal Venkatesan Target Release: 2.8.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

George

YUI Developer

Posted: 06/2/09
  • status changed from new to accepted

George

YUI Developer

Posted: 06/2/09
  • milestone changed from 2.NEXT to 2.8.0

George

YUI Developer

Posted: 07/8/09
  • status changed from accepted to checkedin

George

YUI Developer

Posted: 09/14/09
  • status changed from checkedin to closed

2.8.0 has been released. All "checkedin" items are available for download in the official release. Status of "checkedin" items is being set to closed.

George

YUI Developer

Posted: 09/14/09
  • resolution changed to fixed