vendredi 2 juin 2017

How to get entire row value on select of checkbox using typescript

I am using Typescript.i have a requirment like in each row one checkbox is there. On select of checkbox i want the values of entire row(All fields).

For this i am following the below example.

http://ift.tt/2ri4BCu

In this they are getting the value of only one field that is val

  getCheckedValues() {
   return this.eventTypeChkBox.filter(obj => obj.checked).map(obj => obj.val);
  }

I want to get the values of all the fields that is id and chkBoxImageUrl also.

Can anyone please help me how to do this.I am very new to Typescript.I am not getting exactly how to get this. Please help me.




Aucun commentaire:

Enregistrer un commentaire