1.2.0 • Published 2 years ago

@boxslider/angular v1.2.0

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

BoxSlider Angular ===

Angular directives for the BoxSlider content slider.

Installation

npm install --save @boxslider/slider @boxslider/angular

Usage

Import the module for the slider you wish to use into your application module.

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    FadeSliderModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Add the directive to your slider HTML in the template.

<div class="viewport">
  <div class="slider" bxlFadeSlider 
       [activeSlide]="activeSlide" 
       [autoScroll]="autoScroll"
       (beforeSlide)="handleBeforeSlide($event)"
       (afterSlide)="handleAfterSlide($event)">
    <div class="slide">One</div>
    <div class="slide">Two</div>
    <div class="slide">Three</div>
    <div class="slide">Four</div>
    <div class="slide">Five</div>
    <div class="slide">Six</div>
    <div class="slide">Seven</div>
    <div class="slide">Eight</div>
  </div>
</div>

Inputs

  • sliderOptions: BoxSliderOptions See the BoxSlider documentation for the available options but note that there is no need to provide the effect option.
  • effectOptions: EffectOptions The options for the effect in use. See the effect option documentation for detailed information.
  • activeSlide: number use this input to control the visible slide at a zero based index. For instance setting this to 2 will show slide number 3.
  • autoScroll: boolean use this input to control if the slider is playing or paused.

Outputs

  • beforeSlide: EventData Emits on the BoxSlider before event.
  • afterSlide: EventData Emits on the BoxSlider after event.
  • played: void Emits on the BoxSlider play event.
  • paused: void Emits on the BoxSlider paused event.
  • destroyed: void Emits on the BoxSlider destroy event when the component is destroyed during its lifecycle.
1.2.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago