首页 > 解决方案 > 无论如何要增加 input.text 元素的大小?

问题描述

I want to increase the size of the input box so when I email it it's actually usable for users to enter info, this is the best I could come up with but it's not changing size. I think it's not even possible?

{
    
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "Input.Text",
                    "id": "multilineInputId",
                    "placeholder": "enter comment",
                    "isMultiline": true,
                    "value": "EDITABLE TEXT",
                    "height":"auto"
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.Http",
            "title": "Click me!",
            "method": "POST",
            "url": "https://contoso.com/api/...",
            "body": "<body of the POST request>",
            "headers": [
                {
                    "name": "Content-Type",
                    "value": "application/json"
                }
            ]
        }
    ]
}

标签: botframeworkmicrosoft-teamsadaptive-cards

解决方案


Adaptive Cards 团队正在处理这项工作,但我不记得确切的时间表。有关更多信息,请参阅 2 月社区电话:https ://youtu.be/SEsjrFIf110

目前尚不清楚这是否也会调整文本框,或者只是卡片大小本身,但无论哪种情况,请确保您的自适应卡片本身至少为 1.2(它是当前版本 1.0)


推荐阅读