カルーセル

カルーセルは、子要素として 1 つ以上のバブルを持つコンテナです。カルーセル内のバブルは、横にスクロールして確認できます。

カルーセルを定義する JSON データの最大サイズは 15KB です。

Request Content {#carousel-request-parameter}

パラメータタイプ説明
typestring"carousel"
required
contentsstringカルーセル内に含まれる バブル
最大数:10 個
required

参考

  • バブルの幅
    • 1 つのカルーセルに、幅(size プロパティ)が異なるバブルを入れることはできません。同じカルーセル内のバブルの幅はすべて同じにしてください。
  • 吹き出しの高さ
    • 同じカルーセルに含まれるバブルの高さはすべて、最高の高さのバブルのに合わせて調整されます。ただし、ボディがないバブルでは、サイズは変わりません。

Request Example {#carousel-request-example}

{  "type": "carousel",  "contents": [    {      "type": "bubble",      "body": {        "type": "box",        "layout": "horizontal",        "contents": [          {            "type": "text",            "text": "The Message Bot API enables the client to interact with individual users, by using a message bot account.",            "wrap": true          }        ]      },      "footer": {        "type": "box",        "layout": "horizontal",        "contents": [          {            "type": "button",            "style": "primary",            "action": {              "type": "uri",              "label": "See more",              "uri": "http://line-works.com"            },            "height": "sm"          }        ]      }    },    {      "type": "bubble",      "body": {        "type": "box",        "layout": "horizontal",        "contents": [          {            "type": "text",            "text": "Hello, World!",            "wrap": true          }        ]      },      "footer": {        "type": "box",        "layout": "horizontal",        "contents": [          {            "type": "button",            "style": "primary",            "action": {              "type": "uri",              "label": "See more",              "uri": "http://line-works.com"            },            "height": "sm"          }        ]      }    }  ]}