The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 69 more by this user. Created: 06/2/10
Last CDN Push: 02/9/11
Build Tag: gallery-2011.02.09-21-32
Project: YUI 3
License: YUI BSD
YUI Version: 3.1.1
Free for use.
A core module that adds the underlying framework for AlloyUI. This module provides functionality such as
Language extensions
DelayedTask
The base CSS framework
Component
UA extensions
Browser selectors
HTML5 "shiving" for IE
Node extensions
To view all available events and configuration attributes, view the documentation.
In addition to requiring a couple of modules by default, the AlloyUI base module also adds in the following extensions:
<script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.02.09-21-32',
modules: {
'gallery-aui-skin-base': {
fullpath: 'http://yui.yahooapis.com/gallery-2011.02.09-21-32/build/gallery-aui-skin-base/css/gallery-aui-skin-base-min.css',
type: 'css'
},
'gallery-aui-skin-classic': {
fullpath: 'http://yui.yahooapis.com/gallery-2011.02.09-21-32/build/gallery-aui-skin-classic/css/gallery-aui-skin-classic-min.css',
type: 'css',
requires: ['gallery-aui-skin-base']
}
}
}).use('gallery-aui-base', function(Y) {
// Language extensions:
Y.Lang.emptyFn; // NOOP stub function
Y.Lang.emptyFnFalse; // NOOP stub function that returns false
Y.Lang.emptyFnTrue; // NOOP stub function that returns true
Y.Lang.escapeRegEx(str); //Escapes a regular expression string
Y.Lang.isGuid(id); //determines if the passed in ID was automatically generated by YUI
Y.Lang.toQueryString(obj); //converts an object to a querystring, evaluating methods in an object to their return value
// Array extensions:
Y.Array.remove(arr, from, to); // removes a portion of an array specified in the from and to params
Y.Array.removeItem(arr, item); // removes a given item from an array
// Object extensions:
Y.Object.isEmpty(obj); // determines if the object is empty
// UA extensions:
Y.UA.version.string; // String value of the browser version
Y.UA.version.number; // Numeric float value of the browser version
Y.UA.version.major; // Major integer of the browser version
Y.UA.renderer; // Underlying rendering engine, such as trident, gecko, webkit, or presto
Y.UA.gecko; // True if the browser is gecko
Y.UA.webkit; // True if the browser is webkit
Y.UA.aol; // True if the browser is the AOL browser
Y.UA.camino; // True if the browser is Camino
Y.UA.firefox; // True if the browser is Firefox
Y.UA.flock; // True if the browser is Flock
Y.UA.icab; // True if the browser is iCab
Y.UA.konqueror; // True if the browser is Konqueror
Y.UA.mozilla; // True if the browser is Mozilla
Y.UA.ie; // True if the browser is IE
Y.UA.netscape; // True if the browser is Netscape
Y.UA.opera; // True if the browser is Opera
Y.UA.chrome; // True if the browser is Chrome
Y.UA.safari; // True if the browser is Safari
Y.UA.browser; // the reported browser string
Y.UA.win; // True if the operating system is Windows
Y.UA.mac; // True if the operating system is Mac OSX
Y.UA.linux; // True if the operating system is Linux
Y.UA.iphone; // True if the platform is the iPhone
Y.UA.ipad; // True if the platform is the iPad
Y.UA.sun; // True if the operating system is the SunOS
Y.UA.os; // the reported operating system
Y.UA.platform; // The reported navigator platform
Y.UA.agent; // The reported user agent
// Browser selectors
// Adds the following browser class names to the HTML element of the page
// renderer
// browser
// browser+major version
// os
// "js"
// HTML5 Shiving
// Automatically shivs the document to support HTML5 elements for IE 6, 7, and 8 so that they support css styling
});
Subject | Author | Date |
---|---|---|
Why? | John Lindal | 06/9/10 |
Re: Why? | Murray Macchio | 06/10/10 |
Re: Why? | Murray Macchio | 06/10/10 |
Styling | Eike Hirsch | 06/11/10 |
Re: Why? | Eduardo Lundgren | 06/11/10 |
Re: Styling | Eduardo Lundgren | 06/11/10 |
Re: Why? | Murray Macchio | 06/11/10 |
Re: Why? | Eduardo Lundgren | 06/11/10 |
Re: Styling | Eike Hirsch | 06/14/10 |
Parallel thinking | Peter Peterson | 06/15/10 |
All code on this site is licensed under the BSD License unless stated otherwise.