Which elements to spot (within WRAPPER ID), Set * (for all elements) or specific element such as p , tr. By default spotElements is set to ” which means SPOT THE ENTIRE WRAPPER, not the elements. So if you want to spot ONE element use spotElements:”
Exmp. $(“#myTable”).highspotter({spotElements: “tr”}); where myTable is the WRAPPER ID
Setting *, will spot all elements. It does not work with table rows and cells, use customSelector option instead.
If spotElements is not good enough you can set a custumSelector as you would normally do with jquery selectors. Exm: customSelector:’table#mytableid tr’
If you have problems with the spotted area test position_or_offset:’position’ or position_or_offset:’offset’.
includeElementsMarginPadding:true, |
Detects and includes element margin and padding of spotted element.
excludeClass:'doNotSpotThisElement', |
If found an element within wrapper id with doNotSpotThisElement class does not spot it.
WARNING if you have set an excludeClass in all the spotted elements, inside Wrapper, then higSpotter will detect nothing.
spotOnlyThoseWithClass:'', |
Spots only those elements with spotOnlyThoseWithClass class.
WARNING if you have set a spotOnlyThoseWithClass but not in an element, inside Wrapper, higSpotter will detect nothing.
spotOnTheFlyCreatedElems:false, |
IF NEW ELEMENTS ARE CREATED ON THE FLY WITHIN WRAPPER THEN SPOT THEM ALSO.
Set this true if you have multiple elements with the same height, in the same y position.
Highspotter will ignore other elements which are in the same spotting area with the first one .
WORKS ONLY WITH spotElements: ” ,when spotted element focusout close effect.
Default show speed for sliding panels and all other animations.
Default hide speed for sliding panels and all other animations.
Enable disable all animations.
You can specify any easing effect for whole animations. Note: You need easing plugin for that. http://gsgd.co.uk/sandbox/jquery/easing/.
Only if animation:true.
rememberLastPosition:true, |
Remembers last position. If you pass a clickEvent option then rememberLastPosition is automatically set to false.
Setting it to true enables circular navigation.
Always false, true only when we PROGRAMMATICALLY want to close effect. ex: $(“#mytable”).highspotter({closeEffect:true});
Example close effect after clicking on a button or a link.
WARNING You must use jquery live event instead bind (exmp. on click event).
If set true closes effect after pressing Esc button.
Closes the effect when reaching, on defined element.
Available options are: a number between 1 and n (where n is the number of the last element to be focused) or the word last for closing on last element if we don know the n number.
Examples:
Set autoCloseOn:’last’ to close effect on last element.
Set autoCloseOn:2 to close effect on the second element.
Note if the first item to be spotted after starting effect is the same with autoCloseOn then it will spot the next or previous item automatically.
Function to be executed after each spot.
Functions to be executed before,after start and close efect. Check below for example:
afterStart:function(){alert('HighSpotter ole')}, |
SCROLL PAGE IF BROWSERS VERTICAL SCROLL BAR IS PRESENT
By default, after navigation, highspotter scrolls the webpage (if possible) so the focused element will be in the users screen.
Scroll the webpage so, the focused element is always visible in the the screen of the user. Way Better true, check for yourself.
False if you do not want the effect to animate the window while moving to next or previous element. (True = better looking). Has no effect when autoScroll=false.
Scrolls page to first focused element when effect starts.
The scroll speed. Has No effect when autoScroll=false or animateScroll=false.
restorePagePositionAfterClose:true, |
Restores page position after terminating effect.
restorePagePositionAfterCloseMode:'quick', |
quick, restores page while panels are closing, during animation.
slow, restores page after panels have closed, after animation is done
Where to scroll page when element is focused, default is middle, //<= middle || top || bottom.
Middle means that spotted element will be in the center of the user screen.Tip: scrollPageTo can change on the fly by pressing a keyboard key, go to KEYBORD options to see how.
Only for scrollPageTo: top or bottom. Adds some space, better for the eye.