2016-06-14 7 views
2

Tizenのポップアップセレクタメニューから別のページを開きたいとします。
私は8つのメニュー項目を持っていて、それぞれが同じHTMLでactive-ui-pageクラスを使用して別のページを開く必要があります。
hereというコードを使ってやってみました。Tizen Selectorタッチイベント

セレクタに戻ったとき、indicator-nameは変更されません。
これを手伝ってください。

答えて

6

ポップアップを閉じたり、Selectorを破棄しないようにしてください。このようにしてセレクタが機能しなくなる可能性があります。 tau.closePopup()はpopUpウィンドウを閉じるので、セレクタは表示されません。

elSelector.addEventListener("click", function(event) { 
    var target = event.target; 
    if (tau.support.shape.circle) { 
     if (target.classList.contains("ui-selector-indicator")) { 
      tau.closePopup(popupCircle); //**comment out this line**// 
      //your code 
     } 
    } 
}); 

selector.destroy() &があなたの状況にある場合であるかもしれないイベントリスナーを、削除指標名が変更されていない理由、それはだ破壊します。解決のための

selector.destroy(); //**comment out this line**// 

その逆tau.openPopupを(使用して再度ポップアップウィンドウを呼び出してみてください)

if (tau.support.shape.circle) { 
    tau.openPopup(popupCircle); 
} 

そうtau.widget.Selector(再びセレクタを呼び出す)

if (tau.support.shape.circle) { 
    var radius = window.innerHeight/2 * 0.8; 
    selector = tau.widget.Selector(elSelector, {itemRadius: radius}); 
} 

コードソース:'TAUUIComponents' (Tizen Sample Web app)

ありがとうございます。

+1

ありがとう@ Armaan-Ul-Islam – user1039985

+1

@ user1039985 ...あなたの答えがあなたのために役立つと思うなら、それを他の人へのこの答えを促進する "ベストアンサー"として選択する必要があります。 – nafser33