2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add('node-style', function(Y) {
12 * Extended Node interface for managing node styles.
14 * @submodule node-style
19 * Returns the style's current value.
22 * @param {String} attr The style attribute to retrieve.
23 * @return {String} The current value of the style property for the element.
28 * Returns the computed value for the given style property.
29 * @method getComputedStyle
30 * @param {String} attr The style attribute to retrieve.
31 * @return {String} The computed value of the style property for the element.
36 * Sets a style property of the node.
38 * @param {String} attr The style attribute to set.
39 * @param {String|Number} val The value.
45 * Sets multiple style properties on the node.
47 * @param {Object} hash An object literal of property:value pairs.
52 Y.Node.importMethod(Y.DOM, methods);
54 * Returns an array of values for each node.
58 * @param {String} attr The style attribute to retrieve.
59 * @return {Array} The current values of the style property for the element.
63 * Returns an array of the computed value for each node.
64 * @method getComputedStyle
65 * @see Node.getComputedStyle
66 * @param {String} attr The style attribute to retrieve.
67 * @return {Array} The computed values for each node.
71 * Sets a style property on each node.
74 * @param {String} attr The style attribute to set.
75 * @param {String|Number} val The value.
80 * Sets multiple style properties on each node.
83 * @param {Object} hash An object literal of property:value pairs.
86 Y.NodeList.importMethod(Y.Node.prototype, methods);
90 }, '3.3.0' ,{requires:['dom-style', 'node-base']});