Masonry View
The Masonry View response tells the Command Bar to displays options in the Pinterest-like layout.
1
{
2
"view": {
3
"type": "masonry",
4
"options": [
5
{
6
"imageURL": "https://images.unsplash.com/photo-1481819613568-3701cbc70156",
7
"action": {
8
"type": "copy",
9
"value": "Moon"
10
}
11
},
12
{
13
"imageURL": "https://images.unsplash.com/photo-1614642264762-d0a3b8bf3700",
14
"action": {
15
"type": "copy",
16
"value": "Sun"
17
}
18
}
19
]
20
}
21
}
Copied!

MasonryOption

For MasonryView, property CommandResponse.view.options contains the list of MasonryOption objects.
    imageURL: The image URL for this option.
    action: Option's Main Action object.
    moveAction: Optional. Option's Move Action object.
1
{
2
"view": {
3
"type": "masonry",
4
"options": [
5
{
6
"imageURL": "https://images.unsplash.com/photo-1481819613568-3701cbc70156",
7
"action": {
8
"type": "open-url",
9
"url": "https://images.unsplash.com/photo-1481819613568-3701cbc70156"
10
},
11
"moveAction": {
12
"type": "add-param",
13
"name": "image",
14
"value": "moon"
15
}
16
},
17
{
18
"imageURL": "https://images.unsplash.com/photo-1512361180836-1ecddb33f2dd",
19
"action": {
20
"type": "copy",
21
"value": "Sky"
22
}
23
}
24
]
25
}
26
}
Copied!
Last modified 6d ago
Copy link