mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* Add Edit icon
This commit is contained in:
@@ -33,7 +33,13 @@ export class CardViewArrayItemComponent {
|
||||
constructor(private cardViewUpdateService: CardViewUpdateService) {}
|
||||
|
||||
clicked(): void {
|
||||
this.cardViewUpdateService.clicked(this.property);
|
||||
if (this.isClickable()) {
|
||||
this.cardViewUpdateService.clicked(this.property);
|
||||
}
|
||||
}
|
||||
|
||||
showClickableIcon(): boolean {
|
||||
return this.hasIcon() && this.isClickable();
|
||||
}
|
||||
|
||||
hasIcon(): boolean {
|
||||
@@ -43,4 +49,8 @@ export class CardViewArrayItemComponent {
|
||||
displayCount(): number {
|
||||
return this.property.noOfItemsToDisplay ? this.property.noOfItemsToDisplay : 0;
|
||||
}
|
||||
|
||||
isClickable(): boolean {
|
||||
return !!this.property.clickable;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user