Ricardo Ramirez![]()
The Notifications component provides a way to display in your page a small "notifications" area at the bottom of the page. On click, all the notifications are shown. You can use this component to display relevant information to the users, or to notify them about events happening on the site.
Need help? Feature requests? Bug reports? Post a message in the forum
http://yuilibrary.com/forum/viewforum.php?f=178
The easiest way to create a notifications instance is from existing markup in your page. You need to generate HTML that specifies the notifications information for the user. A notifications component will render at the bottom. If you click on the small box, the notification list is shown. Click the box and it collapses again.
Use the markup:
<ul id="notifications">
<li id="notification:1269122358">
<a href="#message">Louis has left you a message</a>
</li>
<li id="notification:1269120204">
<a href="#message2">Peter has commented your picture</a>
</li>
<li id="notification:1269115173">
<a href="#message3">New message in the 'Advanced JS' forum</a>
</li>
</ul>
<script src="http://yui.yahooapis.com/3.10.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.04.14-19-47'
}).use('notifications' , function(Y) {
var notify = new Y.Notifications('notifications');
});| Subject | Author | Date |
|---|---|---|
| nice little module | logemann | 04/2/10 |
| Re: nice little module | logemann | 04/2/10 |
| Re: nice little module | Ricardo Ramirez | 04/15/10 |
© 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