【问题标题】:Dialog with three radio buttons in angular2 nativescriptangular2 nativescript中带有三个单选按钮的对话框
【发布时间】:2017-09-09 10:32:45
【问题描述】:

我是 angular2 原生脚本编程的新手。我想为我的移动应用程序创建一个带有 3 个单选按钮的对话框。我知道有一些内置对话框,如登录、提示、操作...等。我想要一个对话框上的 3 个单选按钮。我怎样才能创建这样的对话框?请帮帮我..
我尝试了操作对话框..但没有单选按钮。

//简单的动作对话框

dialogs.action("Select Your Option", "Cancel", ["option 1", "option 2","option 3"]).then(res=> {
                console.log("Dialog result: " + res);

【问题讨论】:

    标签: dialog popup radio-button nativescript angular2-forms


    【解决方案1】:

    单选按钮不是标准的移动 UI 组件,但如果您正在使用的操作表不适合它,您可以使用像 https://github.com/bradmartin/nativescript-checkbox 这样的插件

    This is an example of that plugin in action 这就是它的样子:

    抱歉,我不会将所有代码复制粘贴到 SO 上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-28
      • 2014-03-11
      • 1970-01-01
      • 2012-01-16
      • 2017-09-16
      • 2015-02-22
      • 2015-09-10
      相关资源
      最近更新 更多