From cb8505d537e95f6876de8d9de0d559eea65ac451 Mon Sep 17 00:00:00 2001 From: Mrin Date: Wed, 2 Oct 2024 12:45:44 -0400 Subject: [PATCH] fixed 'scrollToPath()' documentation and example --- docs/api.html | 2 +- docs/examples/collapsable-focused.html | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/api.html b/docs/api.html index de166405..e6092d63 100644 --- a/docs/api.html +++ b/docs/api.html @@ -714,7 +714,7 @@

Methods

Example - scrollTo(path) + scrollToPath(path) To programmatically scroll to a section (identified by combination method and path).
diff --git a/docs/examples/collapsable-focused.html b/docs/examples/collapsable-focused.html index 1ee2324c..946b755c 100644 --- a/docs/examples/collapsable-focused.html +++ b/docs/examples/collapsable-focused.html @@ -18,14 +18,13 @@ function scrollWithAPI() { let docEl = getRapiDoc(); - docEl.scrollTo("get-/closed"); + docEl.scrollToPath("get-/closed"); } - @@ -33,20 +32,22 @@ id="thedoc" spec-url="../specs/collapsable.yaml" show-header = "false" - mono-font = "Roboto Mono" - regular-font = 'Open Sans' + allow-authentication = "false" + allow-server-selection = "false" + show-info = "true" render-style= "focused" > -
- Use scrollTo() method to goto : -
+
+ - -