Skip to content
This repository was archived by the owner on Dec 25, 2021. It is now read-only.
This repository was archived by the owner on Dec 25, 2021. It is now read-only.

The best way to subscribe to selectedRow event? #47

@dpadula

Description

@dpadula

What is the best way to subscribe to event when the row is selected?

I need to change the row color when the row is selected no matter where the user click

the following is for one column/cell, but i need to change the row color always the user click in a row.

<data-table-column
  header="Actions">
  <ng-template #dataTableHeader let-item="item">
    <i>Actions</i>
  </ng-template>
  <ng-template #dataTableCell let-item="item">
    <button (click)="carClicked(item)" class="btn btn-sm btn-default">Buy</button>
  </ng-template>
</data-table-column>

Can it be done?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions