Skip to content

Commit

Permalink
Added row clickable in customer table
Browse files Browse the repository at this point in the history
  • Loading branch information
RadheTians committed Dec 20, 2020
1 parent 596130c commit 37c6825
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/app/main/customer/customer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
margin: 0 1rem;
}
}
:host /deep/ ng2-smart-table table > tbody > tr > td:hover {
cursor: pointer;
}

:host /deep/ ng2-smart-table table > tbody > tr > td {
font-size: 0.8rem;
Expand All @@ -47,14 +50,20 @@
height: 0 !important;
}

:host /deep/ ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom {
:host
/deep/
ng2-st-tbody-custom
a.ng2-smart-action.ng2-smart-action-custom-custom {
display: inline-block;
height: auto;
width: 90px;
text-align: center;
font-size: 0.8rem !important;
}

:host /deep/ ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom:hover {
:host
/deep/
ng2-st-tbody-custom
a.ng2-smart-action.ng2-smart-action-custom-custom:hover {
color: #5dcfe3;
}
1 change: 0 additions & 1 deletion src/app/main/customer/customer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ export class CustomerComponent implements OnInit {

/** Customer row select event */
onCustomerRowSelect(event: any): void {
console.log(event.data);
const customer = event.data;
this.router.navigate(['detail', customer.identifier], { relativeTo: this.route });
}
Expand Down

0 comments on commit 37c6825

Please sign in to comment.