Couple copy tweaks
This commit is contained in:
parent
ec429d98f4
commit
60df5fc68b
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ This makes an alert listen for click events on descendant elements which have th
|
|||
| --- | --- |
|
||||
| `close` | Closes an alert by removing it from the DOM. If the `.fade` and `.show` classes are present on the element, the alert will fade out before it is removed. |
|
||||
| `dispose` | Destroys an element's alert. (Removes stored data on the DOM element) |
|
||||
| `getInstance` | Static method which allows you to get the alert instance associated to a DOM element, you can use it like this: `bootstrap.Alert.getInstance(alert)`. |
|
||||
| `getInstance` | Static method which allows you to get the alert instance associated to a DOM element. For example: `bootstrap.Alert.getInstance(alert)`. |
|
||||
{{< /bs-table >}}
|
||||
|
||||
```js
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
|
|||
{{< bs-table "table bs-js-table" >}}
|
||||
| Name | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `offset` | number | 10 | Pixels to offset from top when calculating position of scroll. |
|
||||
| `offset` | number | `10` | Pixels to offset from top when calculating position of scroll. |
|
||||
| `method` | string | `auto` | Finds which section the spied element is in. `auto` will choose the best method to get scroll coordinates. `offset` will use the [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) method to get scroll coordinates. `position` will use the [`HTMLElement.offsetTop`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop) and [`HTMLElement.offsetLeft`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft) properties to get scroll coordinates.` |
|
||||
| `target` | string, jQuery object, DOM element | | Specifies element to apply Scrollspy plugin. |
|
||||
{{< /bs-table >}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue