* Add Edit icon

This commit is contained in:
sivakumar414ram
2019-12-11 19:47:19 +05:30
parent 2cc7fe7efe
commit e3f7e3da09
6 changed files with 77 additions and 24 deletions

View File

@@ -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;
}
}