三星智能电视弹出列表输入

时间:2012-10-04 11:51:59

标签: javascript samsung-smart-tv

我想在他们的文档中像Samsung一样创建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 个答案:

答案 0 :(得分: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);