Is it possible to change `card` `width` of Google Chatbot?

点点圈 提交于 2020-06-28 05:40:25

问题


I was looking around to change card width created by Google Chatbot but as far I see there is no any config within Chatbot API.

Is it possible to set an attribute somehow?

My current Card class;

class Card {
    constructor(title, subtitle, imgUrl) {
        this.sections = [];
        this.cardObject = {
            "cards": [
                {
                    "header": {"title": title, "subtitle": subtitle, "imageUrl": imgUrl},
                    "sections": this.sections
                }
            ]
        };
    }

}

and those are Hangouts Chat APIs I've looked for now but no information about customise the width value;

  • Design guidelines
  • Card Formatting Messages
  • Creating interactive cards

回答1:


Unfortunately, it is not possible to change the width of a card, per the broad Cards overview.



来源:https://stackoverflow.com/questions/56022932/is-it-possible-to-change-card-width-of-google-chatbot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!