mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {SCThings} from '@openstapps/core';
|
||||
import {DataRoutingService} from '../data-routing.service';
|
||||
|
||||
/**
|
||||
* Shows data items in lists such es search result
|
||||
@@ -28,4 +29,13 @@ export class DataListItem {
|
||||
* An item to show
|
||||
*/
|
||||
@Input() item: SCThings;
|
||||
|
||||
constructor(private dataRoutingService: DataRoutingService) {}
|
||||
|
||||
/**
|
||||
* Emit event that an item was selected
|
||||
*/
|
||||
notifySelect() {
|
||||
this.dataRoutingService.emitChildEvent(this.item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user