I rolled out a new version of my jGrowl plugin today. For those who aren't familiar with it, it's a jQuery plugin that generates unobtrusive user-land messages. I first created it for PageSite and it has since worked its way into just about everything I do these days. This latest release focuses on customization and also includes several bug fixes for the previous release. Alongside this I've updated the project page to include some better documentation and examples.
Most of the customizations that I've added were mentioned in my previous posts about what I would like to do. Moving ahead I'd like to change the API such that multiple instances of the jGrowl container can be created. This would come in handy if a user wants to have two areas for notification raising, ie. bottom left corner and upper right. I also intend to add a direction property which will allow the notifications to be set to be prepended or appended. Right now they are only appended, which is fine, however I could see cases where the notification area is docked to the bottom right corner and the user would want new messages to appear at the top of the list.
This, and more is likely to come down the road... For now here's the change log for the latest release:
Changes in 1.0.3:
- Fixed bug with options persisting across notifications.
- Fixed theme application bug.
- Simplified some selectors and manipulations.
- Added beforeOpen and beforeClose callbacks.
- Reorganized some lines of code to be more readable.
- Removed unnecessary this.defaults context.
- If corners plugin is present, it's now customizable.
- Customizable open animation.
- Customizable close animation.
- Customizable animation easing.
- Added customizable positioning (top-left, top-right, bottom-left, bottom-right, center).
Check out the jGrowl page for more information and a demo on this plugin.
Post Comment: