フィラー
スペースを作るためのコンポーネントです。
ボックス内の任意の位置に挿入することで、コンポーネントの間にスペースを作ることができます。
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 | "filler " |
flex | number | N | 親要素内における、このコンポーネントの幅または高さの比率。詳しくは、『Flexible Template ドキュメント』の「レイアウト」の「コンポーネントの幅と高さ」を参照してください。 |
※ フィラーでは親要素のspacing
プロパティが無視されます。
Request Example
{
"type": "bubble",
"body": {
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "image",
"url": "https://i.ibb.co/nmKJ6Bg/WORKSMOBILE02.png",
"aspectMode": "cover"
},
{
"type": "filler"
},
{
"type": "image",
"url": "https://i.ibb.co/nmKJ6Bg/WORKSMOBILE02.png",
"aspectMode": "cover"
}
]
}
}