如何解决希望在 Json 中集成按钮与块 [slack]
我希望在 slack 中使用 modal 将按钮与块 id 集成,到目前为止还无法成功集成,不确定我在这里遗漏了什么,我也是 JSON 的新手,所以肯定可能会遗漏一些东西小在这里。所以基本上当有人点击评论按钮时,它应该弹出另一个表单。如果有人可以在这里提供一些意见,我将不胜感激。提前致谢
几乎可以在这里完成测试 - https://app.slack.com/block-kit-builder
"blocks": [
{
"type": "section","text": {
"type": "mrkdwn","text": "Hello,Assistant to the Regional Manager Dwight! *Michael Scott* wants to kNow where you'd like to take the Paper Company investors to dinner tonight.\n\n *Please select a restaurant:*"
}
},{
"type": "divider"
},{
"type": "section","text": "*Farmhouse Thai Cuisine*\n:star::star::star::star: 1528 reviews\n They do have some vegan options,like the roti and curry,plus they have a ton of salad stuff and noodles can be ordered without meat!! They have something for everyone here"
},"accessory": {
"type": "image","image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/c7ed05m9lC2EmA3Aruue7A/o.jpg","alt_text": "alt text for image"
}
},{
"type": "actions","elements": [
{
"type": "button","text": {
"type": "plain_text","text": "Review","emoji": true
},"value": "click_me_123","title": {
"type": "plain_text","text": "hello world"
},"submit": {
"type": "plain_text","text": "Submit"
},"blocks": [
{
"type": "input","element": {
"type": "plain_text_input","action_id": "ml_input","multiline": true,"placeholder": {
"type": "plain_text","text": "If you need help,please review it here detail"
}
}
}
]
}
]
}
]
"type": "modal"
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。