Move from old git to gittea
This commit is contained in:
28
src/app/tusha/tusha-nav-card/tusha-nav-card.component.ts
Normal file
28
src/app/tusha/tusha-nav-card/tusha-nav-card.component.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user