29 lines
755 B
TypeScript
29 lines
755 B
TypeScript
import {Component, input, InputSignal, output} from "@angular/core";
|
|
import {Router} from "@angular/router";
|
|
import {
|
|
IonCard, IonCardContent, IonCol,IonGrid, IonIcon, IonRow,
|
|
} from "@ionic/angular/standalone";
|
|
import {CardColor} from "./card-color";
|
|
|
|
@Component({
|
|
selector: 'tusha-nav-card',
|
|
templateUrl: 'tusha-nav-card.component.html',
|
|
styleUrls: ['tusha-nav-card.component.css'],
|
|
standalone: true,
|
|
imports: [ IonIcon, IonCard, IonCardContent, IonGrid, IonRow, IonCol],
|
|
styles: []
|
|
})
|
|
export class TushaNavCardComponent {
|
|
title = input.required<String>();
|
|
color: InputSignal<CardColor> = input<CardColor>({color: ''});
|
|
|
|
click = output<void>();
|
|
|
|
constructor(public router: Router) {
|
|
}
|
|
|
|
onClick() {
|
|
this.click.emit();
|
|
}
|
|
}
|