Anthony Pipkin![]()
Moving to 'gallery-xarno-title' and Y.Xarno.Title
Adds the ability to quickly and easily update the title and add an indicator.
An indicator is a prefix (by default) to the title. A common use would be to display number of unread messages in the title while the user is browsing in another tab.
In this example we update the title to read "4 : This is my new title..." by setting the indicator and title and using the default displayTemplate
<script src="http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.03.11-23-49'
}).use('gallery-title', function(Y) {
var t = new Y.Title({indicator: 4});
t.set('title', 'This is my new title...');
});| Subject | Author | Date |
|---|---|---|
| Standardizing apipkin Modules | Anthony Pipkin | 10/16/12 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info