Cascading Style Sheets Plugin for the Sandbox API
Eric Bréchemier © 2011, Some Rights Reserved Legal-Box SAS © 2010-2011, All Rights Reserved
BSD License http://creativecommons.org/licenses/BSD/
2011-08-14
lb. | Cascading Style Sheets Plugin for the Sandbox API |
Functions | |
css(sandbox) | Define methods in the ‘css’ property of given sandbox. |
sandbox. | Get the CSS classes of given DOM element. |
sandbox. | Append a CSS class to a DOM element part of the box. |
sandbox. | Remove a CSS class from a DOM element part of the box. |
Get the CSS classes of given DOM element.
element | DOM Element, an element of the box |
object, a hash of CSS classes, with a boolean property set to true for each of the CSS class names found on element, e.g.
{'big':true, 'box':true}
for
<div class='big box'></div>.
When no class attribute is present, or when it is empty, an empty object is returned.
When the element is out of the box, an empty object is returned as well.