自适应卡输入编号中的预设值
如何使用数据上下文将值设置为 input.number
?
这些自适应卡都不可用:
{
"type": "Input.Number",
"placeholder": "id",
"id": "MyId",
"value": "$root.MyId"
}
{..., "value": $root.MyId }
{..., "value": "${$root.MyId}" }
{..., "$data": "${$root}" }
{..., "$data": "${$root.MyId}"}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个示例,这是有效的:
您只是略微删除了语法。
这应该有效:
here's one example thats working:
https://github.com/DeeJayTC/AdaptiveCardsPeopleApp/blob/master/AdaptiveCardsVuePeople/src/assets/personCreate.json
You just had your syntax slightly off.
This should work:
您可以将Input.number用作类型,但是您想通过占位符设置值并设置数据。然后,值的上下文将全部属于密钥“ root”。使用$ {root.myid}之类的子键,我发现使用input.number时无法正确反映编辑。因此 -
当数据为:
you can use input.number as the type, but you want to set the value via placeholder and also set the data. Then the context of the values would all be under the key "root". Using subkeys like ${root.MyId} i find doesn't reflect correctly edit when using Input.Number. So like -
when the data is: