public static ScrollSpy scrollSpy ( final UIObject spyOn , final HasId target ) { return new ScrollSpy ( spyOn . getElement ( ) , target ) ; }
Attaches ScrollSpy to specified object with specified target element .