Commit c033fd4
committed
docs: clarify carousel getInstance timing and pause in events
Add two warning callouts to the carousel documentation:
- In "Via JavaScript": document that `Carousel.getInstance` returns
`null` for uninitialized carousels and recommend `getOrCreateInstance`
or the `window` `load` event as alternatives.
- In "Events": clarify that calling `pause` inside a `slide.bs.carousel`
handler has no effect and recommend using `slid.bs.carousel` instead.
Fixes #35722
Signed-off-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>1 parent a583d9a commit c033fd4
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
352 | 367 | | |
353 | 368 | | |
354 | 369 | | |
| |||
411 | 426 | | |
412 | 427 | | |
413 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
414 | 442 | | |
415 | 443 | | |
416 | 444 | | |
| |||
0 commit comments