Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add event to control scrolling elemen on top. #2047
Add an event that will allow to scroll/show element inside the survey on page using external code instead the default code. It requires in case of there is a header with a fixed height on the page.
/** * Use this event to control scrolling element to top. You can cancel the default behavior by setting options.cancel property to true. * <br/> `sender` - the survey object that fires the event. * <br/> `options.element` - an element that is going to be scrolled on top. * <br/> `options.question` - a question that is going to be scrolled on top. It can be null if options.page is not null. * <br/> `options.page` - a page that is going to be scrolled on top. It can be null if options.question is not null. * <br/> `options.elementId` - the unique element DOM Id. * <br/> `options.cancel` - set this property to true to cancel the default scrolling. */ public onScrollingElementToTop: Event< (sender: SurveyModel, options: any) => any, any > = new Event<(sender: SurveyModel, options: any) => any, any>();