mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1108] Task header - Show the parent name as a clickable value (#2098)
* Add a MapItem component inside the CardVied Add a way to define a property clickable * Fix unit test * Add basic documentation Unify css class name * Fix class name * remove unused class
This commit is contained in:
committed by
Eugenio Romano
parent
1214c2ebab
commit
33fc2373ae
@@ -24,6 +24,10 @@ export interface UpdateNotification {
|
||||
changed: any;
|
||||
}
|
||||
|
||||
export interface ClickNotification {
|
||||
target: any;
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class CardViewUpdateService {
|
||||
|
||||
@@ -33,10 +37,18 @@ export class CardViewUpdateService {
|
||||
// Observable streams
|
||||
public itemUpdated$ = this.itemUpdatedSource.asObservable();
|
||||
|
||||
public itemClicked$: Subject<ClickNotification> = new Subject<ClickNotification>();
|
||||
|
||||
update(property: CardViewBaseItemModel, changed: any) {
|
||||
this.itemUpdatedSource.next({
|
||||
target: property,
|
||||
changed
|
||||
});
|
||||
}
|
||||
|
||||
clicked(property: CardViewBaseItemModel) {
|
||||
this.itemClicked$.next({
|
||||
target: property
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user