This method is called when JScrollPane is trying to animate to a new position. You can override it if you want to provide advanced animation functionality.
The element whose position is being animated
The property that is being animated
The value it's being animated to
A function that will be executed after the animation had finished.
Destroys the JScrollPane on the instance matching this API object and restores the browser's default behavior.
Finds the height of the content within the scroll pane.
The height of the content within the scroll pane.
Gets a reference to the content pane. It is important that you use this method if you want to edit the content of your JScrollPane as if you access the element directly then you may have some problems (as your original element has had additional elements for the scrollbars etc added into it).
The content pane of this scroll pane.
Finds the current x position of the viewport with regards to the content pane.
The current x position of the viewport with regards to the content pane.
Finds the current y position of the viewport with regards to the content pane.
The current y position of the viewport with regards to the content pane.
Finds the width of the content within the scroll pane.
The width of the content within the scroll pane.
Checks whether or not this scroll pane has a horizontal scrollbar.
Whether or not this scroll pane has a horizontal scrollbar.
Checks whether or not this scroll pane has a vertical scrollbar.
Whether or not this scroll pane has a vertical scrollbar.
Finds the horizontal position of the viewport within the pane content
The horizontal position of the viewport within the pane content.
Finds the vertical position of the viewport within the pane content.
The vertical position of the viewport within the pane content.
Hijacks the links on the page which link to content inside the scroll pane. If you have changed the content of your page (e.g. via AJAX) and want to make sure any new anchor links to the contents of your scroll pane will work then call this function.
Positions the horizontal drag at the specified x position (and updates the viewport to reflect this)
New position of the horizontal drag.
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Positions the vertical drag at the specified y position (and updates the viewport to reflect this)
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Reinitializes the scroll pane (if it's internal dimensions have changed since the last time it was initialized).
The settings object which is passed in will override any settings from the previous time it was initialized - if you don't pass any settings then the ones from the previous initialization will be used.
Scrolls the pane by the specified amount of pixels.
Number of pixels to scroll horizontally
Number of pixels to scroll vertically
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane by the specified amount of pixels.
Number of pixels to scroll horizontally
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane by the specified amount of pixels
Number of pixels to scroll vertically
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane so that the specified co-ordinates within the content are at the top left of the viewport.
Left position of the viewport to scroll to
Top position of the viewport to scroll to
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls this scroll pane down as far as it can currently scroll.
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the specified element into view so that it can be seen within the viewport.
A CSS selector, HTML element of jQuery wrapper object to scroll to.
If it is true then the element will appear at the top of the viewport, if it is false then the viewport will scroll as little as possible to show the element.
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane to the specified percentage of its maximum horizontal scroll position.
Percentage from left of the full width of the viewport to scroll to
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane to the specified percentage of its maximum vertical scroll position.
Percentage from top of the full width of the viewport to scroll to
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane so that the specified co-ordinate within the content is at the left of the viewport.
Left position of the viewport to scroll to.
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane so that the specified co-ordinate within the content is at the top of the viewport.
Top position of the viewport to scroll to
Whether an animation should occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Generated using TypeDoc
The JScroll instance that is created when initializing an element via the jQuery plugin. It can be accessed via the
jsp
data attribute of the jQuery element:$(scrollPanelElement).data("jsp")
.