2012-10-04 37 views
2

我要让就像三星都有自己的文档中的一个listinput弹出: http://www.samsungdforum.com/Guide/View/Developer_Documentation/User_Experience_Guideline_1.5/Extra_Features/Policy_on_popup_windows/Action_Window三星智能电视弹出的列表中输入

像这样:

description image

但对如何没有信息执行这个。

下面是一个示例代码,我发现:

$('#newName_popup').sfPopup({ 
     text: 'Enter your name', 
     buttons: ['Ok', 'Cancel'], 
     timeout: 0, 
     defaultFocus: 0, 
     callback: function newNameCallback(selectedIndex){ 
      alert('popup_callback'); 
      if(selectedIndex == 0){ 
       alert(); 
      } 
     } 
}); 

如何找到所有属性的名称(文字,按钮等)?

回答

1

我放弃了试图改变输入三星提供,而不是我做了一个小场景,透明的黑色背景:

启动现场:

sf.scene.show('CityPopup'); 
sf.scene.focus('CityPopup'); 

隐藏场景:

sf.scene.show('Scene1'); 
sf.scene.hide('CityPopup'); 
sf.scene.focus('Scene1'); 

现场背景:

background : rgba(0, 0, 0, 0.6);