0
我試圖開發使用煎茶框架。我需要顯示在列表中的list.Each電池項目的列表中的iPhone應用程序擁有一個按鈕also.If在用戶點擊按鈕在一個特定的指數,那麼酥料餅需要靠近按鈕。我現在用的是下面的代碼做的是顯示器這個手柄按鈕動作
itemTpl : '<div class="div1"><label class = "tag-name-hdr"> {tagnamehdr} </label> <label class = "tag-name-value" style="width:55px;"> value </label> <input type="text" class ="tag-name-text" name="lname" /> <label class = "unit-name" > unit </label> <select class = "unit-name_dropdown" > <option>mg/dr</option> <option>gm/dr</option> <option>m/dr</option> </select> <input type="image" id="popupbtn" class="template_popup_button" src="Images/arrow_more_orange.png" > </div>',
listeners : {
//itemtap : function(list, index, item, e, popupbtn) {
itemtap : function(list, index, item, evt) {
if(evt.getTarget('.template_popup_button')) {
alert(item);
alert(index);
showOverlay(item, evt, index);
}
}
}
現在我的問題是,酥料餅被顯示所選cell.I需要顯示附近所點擊的button.Is那裏酥料餅的任何方式來獲得點擊的按鈕對象,顯示接近that.Now我傳遞點擊物品格對象作爲參數傳遞給「showOverlay」覆蓋/酥料餅的,我需要通過點擊按鈕對象 謝謝ANCE ..