@uterere

@uterere

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Row formatting #104514
    uterere
    Participant

    OK, the trick was binding “this” in the template.

    “[onCellRender]=”onCellRender.bind(this)”

    Best regards
    Ute

    in reply to: Row formatting #104503
    uterere
    Participant

    Dear Steven,

    Very peculiar this solution to pass a function as a binding property.

    Anyway it does not solve an important  problem:  What to do when the information of which row must be highlighted  is external to the component.

    How to do that in Angular?

    Example: suppose you have an ajax table,

    (i) you click in a row => onClick

    (ii) save the id of the row => this.selectedId = data.id

    (iii)=> ???? =>  highlighted the entire row where row.id === this.selectedId.

    Thank you so much

    Ute

     

     

     

     

     

     

Viewing 2 posts - 1 through 2 (of 2 total)