TVML-如何修改formTemplate以显示"pin条目". [英] TVML - how to modify formTemplate to show "pin entry"

查看:118
本文介绍了TVML-如何修改formTemplate以显示"pin条目".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TVML的formTemplate可以轻松地修改为仅允许数字输入:

TVML's formTemplate can easily be adapted to only allow numeric input:

<formTemplate>
  <textField keyboardType="numberPad">0000</textField>
  <footer>
    <button>
      <text>${TEXT("Submit")}</text>
    </button>
  </footer>
</formTemplate>

这会显示类似...的页面

This gives a page like...

我想进一步减少它,仅显示密码输入"屏幕,如下所示:

I would like to reduce it even further to only display a "pin entry" screen as shown here:

在没有托管自己的UIControl的情况下,TVML是否有可能?我无处发现这样的样式变化.任何想法如何实现这一目标?谢谢!

Is this possible with TVML, without hosting an own UIControl? I have nowhere found any mentioning of changing styles like this. Any idea how to achieve this? Thanks!

推荐答案

textField

https://developer.apple.com/library/tvos/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/TVJSAttributes.html#//apple_ref/doc/uid/TP40015064-CH42-SW37

  <textField keyboardType="numberPad" secure="true">0000</textField>

这篇关于TVML-如何修改formTemplate以显示"pin条目".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆