如何从 NativeScript 的提示中更改文本的返回键类型? [英] How do I change the return key type of a text from a prompt in NativeScript?

查看:16
本文介绍了如何从 NativeScript 的提示中更改文本的返回键类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更改 TextViews/TextFields 的返回键类型非常简单,但是,由于提示不使用任何 html,因此没有明显的方法来更改返回键类型.NativeScript 文档也没有表明有任何方法可以更改它.

Changing the return key type of TextViews/TextFields is pretty straight forward, however, since prompts don't use any html there's no obvious way to change the return key type. the NativeScript docs don't indicate there being any way to change it either.

推荐答案

很遗憾,您不能这样做.截至今天,{N} 不会公开对话框的底层本机视图,因此无法本机覆盖.

Unfortunately you can not do that. As of today {N} do not expose the underlaying native view for dialogs so it's not possible to override natively.

您必须自己构建完整的自定义对话框才能实现所需的内容.

You will have to build the complete custom dialog yourself to achieve what you are looking for.

这篇关于如何从 NativeScript 的提示中更改文本的返回键类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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