セパレータ
ボックス内に区切り線を表示するコンポーネントです。
水平ボックスでは縦に線(垂直線)、垂直ボックスでは横に線(水平線)が描画されます。
API の種類
サーバー API
Request URL
https://apis.worksmobile.com/r/{API ID}/message/v1/bot/{botNo}/message/push
HTTP Method
POST(Content-Type: application/json; charset=UTF-8)
Request Content
パラメータ | タイプ | 必須 | 説明 |
---|---|---|---|
type | string | Y | "separator " |
margin | string | N | 親要素内での、特定のコンポーネントとその前のコンポーネントとの間に挿入される余白の最小サイズ。詳しくは、『Flexible Template ドキュメント』の「レイアウト」の「コンポーネントの margin プロパティ」を参照してください。 |
color | string | N | セパレータの色。16進数カラーコードで設定します。 |
Request Example
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [
{
"type": "box",
"layout": "horizontal",
"spacing": "md",
"contents": [
{
"type": "text",
"text": "message"
},
{
"type": "text",
"text": "calendar"
}
]
},
{
"type": "separator"
},
{
"type": "box",
"layout": "horizontal",
"spacing": "md",
"contents": [
{
"type": "text",
"text": "bot"
},
{
"type": "text",
"text": "home"
}
]
}
]
}
}