forked from valor-software/ngx-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(carousel): add demo with noPause function (valor-software#3708)
* docs(carousel): add demo with noPause function add demo with toggle pause on hover button close valor-software#3645 * docs(carousel): fix name and change binding * docs(carousel): add modefied files after update
- Loading branch information
Showing
4 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
demo/src/app/components/+carousel/demos/no-pause/no-pause.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<carousel [noPause]="noPause"> | ||
<slide> | ||
<img src="assets/images/nature/4.jpg" alt="First slide" style="display: block; width: 100%;"> | ||
<div class="carousel-caption d-none d-md-block"> | ||
<h3>First slide label</h3> | ||
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> | ||
</div> | ||
</slide> | ||
<slide> | ||
<img src="assets/images/nature/5.jpg" alt="Second slide" style="display: block; width: 100%;"> | ||
<div class="carousel-caption d-none d-md-block"> | ||
<h3>Second slide label</h3> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
</div> | ||
</slide> | ||
<slide> | ||
<img src="assets/images/nature/6.jpg" alt="Third slide" style="display: block; width: 100%;"> | ||
<div class="carousel-caption d-none d-md-block"> | ||
<h3>Third slide label</h3> | ||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p> | ||
</div> | ||
</slide> | ||
</carousel> | ||
<br/> | ||
<div> | ||
<button type="button" class="btn btn-info" | ||
(click)="noPause = !noPause">Toggle pause on hover | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-carousel-no-pause', | ||
templateUrl: './no-pause.html' | ||
}) | ||
export class DemoCarouselNoPauseComponent { | ||
noPause = true; | ||
} |