ios - expand/contract tableview rows -


anyone out there willing explain me how/why when expand row (tableviewrow) welcomelabel contains text rows expand 1 one , stay open, when click on closelabel contained in closelabel.addeventlistener, open rows close not 1 referenced in event listener. many thanks.

 openlabel.addeventlistener('click',function(e){             wrow.height = 100;         var labelrowid = e.rowdata.rowid;         var labeltext = e.rowdata.labeltext;         welcomelabel.height = 100;         texttableview.updaterow(e.index,wrow);         texttableview.data[0].rows[labelrowid].children[0].text = test;     });   closelabel.addeventlistener('click',function(e){     if(wrow.height === 100){         wrow.height = 32;         var labelrowid = e.rowdata.rowid;         labeltext = e.rowdata.labeltext;         welcomelabel.height = 32;         texttableview.updaterow(e.index,wrow);         texttableview.data[0].rows[labelrowid].children[0].text = labeltext;         //texttableview.setdata(welcomerows);     }     }); 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -