Glow 2.0.0 Beta 1
API Quick Reference
JavaScript is required to use the quick reference
Downloading the beta
You can download all Glow releases, include betas, from the downloads page.
What's new?
Glow 2 is a major rewrite concentrating on API and performance. We've taken the opportunity to change the API, basing our changes on feedback we've received from users of Glow 1.
Documentation
We have a short guide to getting started with Glow 2 and full API documentation is provided in the zip/tar file package available via the downloads page
The API documentation will be available on the site as it is with other versions in time for the main 2.0.0 release.
Compatibility
Due to API changes, Glow 2 cannot run code written for Glow 1.
Code written for Glow 2 Beta 1 may not be compatible with future releases. We may make further changes based on feedback from the beta. However, these changes are likely to be minor and will be documented in release notes for future versions.
Running Glow 1 & Glow 2 on the same page
Glow 1, Glow 2 and Gloader can be used on the same page without issues, provided they don't use the same global variables (e.g. window.glow). Glow 1 can be loaded into a private scope via Gloader.
Glow 2 can be loaded into a private scope via its own loader..
Overview
This release contains the following:
- Glow
- The loader.
- glow()
- Shortcut function for creating/fetching glow.NodeLists.
- glow.NodeList
- Manipulate DOM elements. Similar in API to Glow 1, but with improved performance.
- glow.events
- Methods for batch adding/removing of listeners. Methods for adding listeners has been moved to individual objects via their 'on' method. NodeLists also have methods for event delegation.
- glow.anim
- Create and synchronise animations. Note that NodeList has shortcut methods for animating DOM elements.
- glow.env
- Information on the browser should, according to BBC Guidelines, be used as a last resort.
- glow.net
- Methods for fetching data & loading scripts/images/css. Includes methods to make cross-domain requests via JSONP and window.name.
- glow.tweens
- Tweening functions for animations.
- glow.util
- Utility methods. E.g. cloning objects and copying properties.
- glow.ui.Overlay
- For overlaying an element on top of another. Handles issues like Flash & select boxes in IE.
- glow.ui.Focusable
- Behaviour to allow keyboard navigation around a set of elements.
- glow.ui.AutoSuggest
- Enhance a text input with auto-complete/suggest functionality.
- glow.ui.Carousel
- Enhance items to show them in an interactive carousel.
What's next?
There are some features present in Glow 1 that haven't made it into Glow 2 yet but we're working hard to bring them into Glow 2, ensuring they get the same API and performance enhancements as the rest of Glow 2.
In the meantime, we're looking forward to hearing your ideas & feature requests!