Add shadow around a DOM element. The element MUST BE in ABSOLUTE position.
Shadow can be skinned by CSS (see mac_shadow.css or drop_shadow.css). CSS must be included to see shadow.
A shadow can have two states: focused and blur. Shadow shifts are set in CSS file as margin and padding of shadow_container to add visual information.
Example
new UI.Shadow("element_id");
Summary
| Add shadow around a DOM element. |
| Constructor, adds shadow elements to the DOM if element is in the DOM. |
| Destructor, removes elements from the DOM |
| |
| Sets top/left shadow position in pixels |
| Sets width/height shadow in pixels |
| Sets shadow bounds in pixels |
| |
| |
| |
| |
| Removes shadow from the DOM |
| |
| |
| |