Jx.Splitter.Snap

Extends: Object

A helper class to create an element that can snap a split panel open or closed.

Example

License

Copyright © 2008, DM Solutions Group Inc.

This file is licensed under an MIT style license

Summary
Jx.Splitter.SnapExtends: 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.Splitter.SnapCreate a new Jx.Splitter.Snap
Functions
toggleElementSnap the element open or closed.
sizeChangedHandle the size of the element changing to see if the toggle state has changed.

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.Splitter.Snap

Create a new Jx.Splitter.Snap

Parameters

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.

Functions

toggleElement

toggleElement: function()

Snap the element open or closed.

sizeChanged

Handle the size of the element changing to see if the toggle state has changed.

Extends: Object
toggleElement: function()
Snap the element open or closed.