|
|
@@ -0,0 +1,15 @@
|
|
|
+import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
|
+
|
|
|
+/**
|
|
|
+ * A simple, stateless toggle button for indicating selection.
|
|
|
+ */
|
|
|
+@Component({
|
|
|
+ selector: 'vdr-select-toggle',
|
|
|
+ templateUrl: './select-toggle.component.html',
|
|
|
+ styleUrls: ['./select-toggle.component.scss'],
|
|
|
+ changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
+})
|
|
|
+export class SelectToggleComponent {
|
|
|
+ @Input() selected = false;
|
|
|
+ @Output() selectedChange = new EventEmitter<boolean>();
|
|
|
+}
|