Skip to content

Scroll a report to a given location

If scrollTo=true is appended to the query string, the report will scroll to the row number given

if (report.api.getParamByName("scrollTo") && report.api.find("#R" + report.api.getParamByName("scrollTo")).length) {
  report.api.find(".quad4").animate(
    {
      scrollTop: report.api.find("#R" + report.api.getParamByName("scrollTo")).offset().top
    },
    1000
  )
}