3
Copyright 2011 Yahoo! Inc. All rights reserved.
4
Licensed under the BSD License.
5
http://yuilibrary.com/license/
7
YUI.add('node-style', function(Y) {
11
* Extended Node interface for managing node styles.
13
* @submodule node-style
18
* Returns the style's current value.
21
* @param {String} attr The style attribute to retrieve.
22
* @return {String} The current value of the style property for the element.
27
* Returns the computed value for the given style property.
28
* Use CSS case (e.g. 'background-color') for multi-word properties.
30
* @method getComputedStyle
31
* @param {String} attr The style attribute to retrieve.
32
* @return {String} The computed value of the style property for the element.
37
* Sets a style property of the node. Use CSS case (e.g. 'background-color')
38
* for multi-word properties.
40
* @param {String} attr The style attribute to set.
41
* @param {String|Number} val The value.
47
* Sets multiple style properties on the node.
49
* @param {Object} hash An object literal of property:value pairs.
54
Y.Node.importMethod(Y.DOM, methods);
56
* Returns an array of values for each node.
60
* @param {String} attr The style attribute to retrieve.
61
* @return {Array} The current values of the style property for the element.
65
* Returns an array of the computed value for each node.
66
* @method getComputedStyle
67
* @see Node.getComputedStyle
68
* @param {String} attr The style attribute to retrieve.
69
* @return {Array} The computed values for each node.
73
* Sets a style property on each node.
76
* @param {String} attr The style attribute to set.
77
* @param {String|Number} val The value.
82
* Sets multiple style properties on each node.
85
* @param {Object} hash An object literal of property:value pairs.
88
Y.NodeList.importMethod(Y.Node.prototype, methods);
92
}, '3.4.1' ,{requires:['dom-style', 'node-base']});