UX Overhaul Part 1 (#3047)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
parent
5934d516f3
commit
ff79710ac6
324 changed files with 11589 additions and 4598 deletions
|
|
@ -0,0 +1,33 @@
|
|||
import {
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef,
|
||||
Component, ContentChild,
|
||||
inject,
|
||||
Input,
|
||||
TemplateRef
|
||||
} from '@angular/core';
|
||||
import {NgTemplateOutlet} from "@angular/common";
|
||||
import {TranslocoDirective} from "@ngneat/transloco";
|
||||
import {SafeHtmlPipe} from "../../../_pipes/safe-html.pipe";
|
||||
|
||||
@Component({
|
||||
selector: 'app-setting-switch',
|
||||
standalone: true,
|
||||
imports: [
|
||||
NgTemplateOutlet,
|
||||
TranslocoDirective,
|
||||
SafeHtmlPipe
|
||||
],
|
||||
templateUrl: './setting-switch.component.html',
|
||||
styleUrl: './setting-switch.component.scss',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class SettingSwitchComponent {
|
||||
private readonly cdRef = inject(ChangeDetectorRef);
|
||||
|
||||
@Input({required:true}) title: string = '';
|
||||
@Input() subtitle: string | undefined = undefined;
|
||||
@Input() id: string | undefined = undefined;
|
||||
@ContentChild('switch') switchRef!: TemplateRef<any>;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue