An icon and text. Answers touch gestures with actions sent to the host.
View raw schema
{
"description": "An icon and text. Answers touch gestures with actions sent to the host.",
"properties": {
"accepts": {
"description": "The kind of dragged item this accepts (with on.drop).",
"maxLength": 32,
"type": "string"
},
"bind": {
"description": "Bound properties replace literal ones.",
"properties": {
"color": {
"ref": "#binding",
"type": "ref"
},
"icon": {
"ref": "#binding",
"type": "ref"
},
"image": {
"ref": "#binding",
"type": "ref"
},
"level": {
"ref": "#binding",
"type": "ref"
},
"look": {
"ref": "#binding",
"type": "ref"
},
"marks": {
"ref": "#binding",
"type": "ref"
},
"status": {
"ref": "#binding",
"type": "ref"
},
"subtext": {
"ref": "#binding",
"type": "ref"
},
"text": {
"ref": "#binding",
"type": "ref"
},
"value": {
"ref": "#binding",
"type": "ref"
}
},
"type": "object"
},
"color": {
"maxLength": 64,
"type": "string"
},
"drag": {
"description": "Makes the item draggable; names the kind of thing it is.",
"maxLength": 32,
"type": "string"
},
"grow": {
"description": "Share of a row's width.",
"maximum": 12,
"minimum": 0,
"type": "integer"
},
"icon": {
"maxLength": 32,
"type": "string"
},
"id": {
"description": "Names the block in action intents. Required on items that answer gestures.",
"maxLength": 64,
"type": "string"
},
"image": {
"description": "A picture from this app's own image paths (event photos, theme art); shown instead of the icon. Outside URLs are ignored.",
"maxLength": 300,
"type": "string"
},
"level": {
"description": "For look \"meter\".",
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"look": {
"knownValues": [
"sticker",
"face",
"tile",
"slot",
"chip",
"banner",
"clock",
"yes",
"no",
"back",
"swatch",
"meter",
"countdown",
"face-big",
"together",
"goal",
"claim"
],
"type": "string"
},
"on": {
"ref": "#gestures",
"type": "ref"
},
"status": {
"knownValues": [
"pending",
"done",
"selected",
"error"
],
"type": "string"
},
"subtext": {
"maxLength": 200,
"type": "string"
},
"text": {
"maxLength": 200,
"type": "string"
},
"value": {
"description": "Sent with the item's gestures.",
"maxLength": 1000,
"type": "string"
},
"when": {
"description": "Only show the block when this binding is truthy.",
"ref": "#binding",
"type": "ref"
}
},
"type": "object"
}