Convert pixel to scroll value.
For example, wijsuperpanel scrolled 50px
which is value 1 after conversion.
Syntax
Javascript (Usage) | |
---|
$(function () {
var returnsValue; // Type: any
// Parameters
var px; // Type: number
var dir; // Type: string
returnsValue = $(".selector").wijsuperpanel("scrollPxToValue", px, dir);
});
|
Javascript (Specification) | |
---|
function scrollPxToValue(
: number,
: string
) : any;
|
Parameters
- px
- Length of scrolling.
- dir
- Scrolling direction. Options are: "h" and "v".
Browser Compatibility
See Also
Reference
wijsuperpanel type
wijsuperpanel jQuery Widget