Extends: Object
A helper class to create an element that can snap a split panel open or closed.
Copyright © 2008, DM Solutions Group Inc.
This file is licensed under an MIT style license
| Jx. | Extends: Object |
| Properties | |
| snap | {HTMLElement} the DOM element of the snap (the thing that gets clicked). |
| element | {HTMLElement} An element of the Jx.Splitter that gets controlled by this snap |
| splitter | {Jx.Splitter} the splitter that this snap is associated with. |
| layout | {String} track the layout of the splitter for convenience. |
| Constructor | |
| Jx. | Create a new Jx.Splitter.Snap |
| Functions | |
| toggleElement | Snap the element open or closed. |
| sizeChanged | Handle the size of the element changing to see if the toggle state has changed. |
{HTMLElement} An element of the Jx.Splitter that gets controlled by this snap
{Jx.Splitter} the splitter that this snap is associated with.
Create a new Jx.Splitter.Snap
| snap | {HTMLElement} the clickable thing that snaps the element open and closed |
| element | {HTMLElement} the element that gets controlled by the snap |
| splitter | {Jx.Splitter} the splitter that this all happens inside of. |
Snap the element open or closed.
toggleElement: function()