User input in a messageDialog box

I'm trying to add a custom user input field in a messageDialog box, like the one below in the Bing Sports app. However, it seems you can only add commands, which are buttons. Any help? (I'm working in HTML/JavaScript) Normally, control over messageDialog boxes appears as follows: var dialogMessage = 'This is the dialog text'; var dialog = new Windows.UI.Popups.MessageDialog( dialogMessage ); dialog.commands.append(new Windows.UI.Popups.UICommand("Button", function (command) { /* Action goes here */ })); dialog.showAsync(); As you can see, you can only append a command to the dialogMessage, in the form of an actionable button... ![enter image description here][1] [1]: http://i.stack.imgur.com/vu7pg.png
oops, forgot to add that. Javascript

以上就是User input in a messageDialog box的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏