[Trunk|Library]: Add some parameters on gif slider.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56217 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
ba0a523eab
commit
879daf9be3
|
@ -3,7 +3,11 @@ import {Component, Input} from '@angular/core';
|
|||
@Component({
|
||||
selector: 'gif-slider',
|
||||
template: `
|
||||
<div tabindex="-1" uk-slider="velocity: 0; autoplay: true; autoplay-interval: 4000; pause-on-hover: false; center: true">
|
||||
<div tabindex="-1" [attr.uk-slider]="'velocity: ' + velocity +
|
||||
';autoplay: '+ autoplay +
|
||||
';autoplay-interval: ' + autoplayInterval +
|
||||
';pause-on-hover: ' + pauseOnHover +
|
||||
';center: ' + center">
|
||||
<div class="uk-slider-container">
|
||||
<ul class="uk-slider-items uk-child-width-1-1">
|
||||
<li *ngFor="let gif of gifs">
|
||||
|
@ -32,5 +36,10 @@ export class GifSliderComponent {
|
|||
@Input() route = null;
|
||||
@Input() linkTitle = null;
|
||||
@Input() gifRight = false;
|
||||
@Input() velocity = 0;
|
||||
@Input() autoplay = true;
|
||||
@Input() autoplayInterval = 4000;
|
||||
@Input() pauseOnHover = false;
|
||||
@Input() center = true;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue