Skip to content

Commit 0899fc6

Browse files
committed
none bullets option
1 parent afc860c commit 0899fc6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export enum BulletType {
22
CIRCLE = 'circle',
3-
SQUARE = 'square'
3+
SQUARE = 'square',
4+
NONE = 'none'
45
}

projects/slider/src/lib/slider.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2 *ngIf="slide.title" [innerHtml]="slide.title" [class.h2-no-button]="!slide.b
1717
</div>
1818
</section>
1919

20-
<section class="bullet-container">
20+
<section *ngIf="option.bulletType!==bulletType.NONE" class="bullet-container">
2121
<span class="bullet" *ngFor="let x of slides; index as i;"
2222
[class.square]="option.bulletType===bulletType.SQUARE"
2323
[class.active]="i+1==currentSlidePos"

src/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class AppComponent {
3737

3838
option: IOptions = {
3939
animationType: AnimationType.FIXED,
40-
bulletType: BulletType.SQUARE,
40+
bulletType: BulletType.NONE,
4141
timeBySlide: 4000
4242
};
4343

0 commit comments

Comments
 (0)