2023-02-09 11:09:49 +01:00
|
|
|
import {Component, Input} from "@angular/core";
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'slider-arrow',
|
|
|
|
template: `
|
2023-03-22 16:14:11 +01:00
|
|
|
<div *ngIf="type" class="uk-slider-arrow uk-visible@m" [ngClass]="positionClasses" [attr.uk-slider-item]="type">
|
2023-02-09 11:09:49 +01:00
|
|
|
<button class="uk-icon-button uk-icon-button-small uk-box-no-shadow uk-box-no-shadow-hover uk-border">
|
|
|
|
<icon [name]="icon" [flex]="true" visuallyHidden="download"></icon>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
`
|
|
|
|
})
|
|
|
|
export class SliderArrowComponent {
|
|
|
|
@Input()
|
|
|
|
public type: 'previous' | 'next';
|
|
|
|
|
|
|
|
|
|
|
|
get positionClasses() {
|
|
|
|
return (this.type == 'previous')?'uk-position-center-left uk-slider-left':'uk-position-center-right uk-slider-right'
|
|
|
|
}
|
|
|
|
|
|
|
|
get icon() {
|
|
|
|
return (this.type == 'previous')?'chevron_left':'chevron_right'
|
|
|
|
}
|
2023-03-22 16:14:11 +01:00
|
|
|
}
|