]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update Scrollspy doc to include missing method options (#27754)
authorunaccomplished <hsu.joce@gmail.com>
Tue, 11 Dec 2018 08:27:04 +0000 (00:27 -0800)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 11 Dec 2018 08:27:04 +0000 (10:27 +0200)
site/docs/4.1/components/scrollspy.md

index 3c52f82510c6a32f8569b0c014dfa585558a0567..b8d91194916cfd16d63c29fe77938460d4755791 100644 (file)
@@ -306,6 +306,18 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
       <td>10</td>
       <td>Pixels to offset from top when calculating position of scroll.</td>
     </tr>
+    <tr>
+      <td>method</td>
+      <td>string</td>
+      <td>auto</td>
+      <td>Finds which section the spied element is in. <code>auto</code> will choose the best method get scroll coordinates. <code>offset</code> will use jQuery offset method to get scroll coordinates. <code>position</code> will use jQuery position method to get scroll coordinates.</td>
+    </tr>
+    <tr>
+      <td>target</td>
+      <td>string</td>
+      <td></td>
+      <td>Specifies element to apply Scrollspy plugin.</td>
+    </tr>
   </tbody>
 </table>