Source code

Revision control

Copy as Markdown

Other Tools

{
"title": "InfoBar",
"description": "A template with an image, test and buttons.",
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Should the message be global (persisted across tabs) or local (disappear when switching to a different tab).",
"enum": ["global", "tab"]
},
"text": {
"description": "The text show in the notification box."
},
"priority": {
"type": "number",
"minumum": 0,
"exclusiveMaximum": 10
},
"buttons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"description": "The text label of the button."
},
"primary": {
"type": "boolean",
"description": "Is this the primary button?"
},
"accessKey": {
"type": "string",
"description": "Keyboard shortcut letter."
},
"action": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Action dispatched by the button."
},
"data": {
"type": "object"
}
},
"required": ["type"],
"additionalProperties": true
},
"supportPage": {
"type": "string",
"description": "A page title on SUMO to link to"
}
},
"required": ["label", "action"],
"additionalProperties": true
}
}
},
"additionalProperties": true,
"required": ["text", "buttons"]
},
"template": {
"type": "string",
"const": "infobar"
}
},
"additionalProperties": true,
"required": ["targeting", "trigger"],
"$defs": {
"plainText": {
"description": "Plain text (no HTML allowed)",
"type": "string"
},
"linkUrl": {
"description": "Target for links or buttons",
"type": "string",
"format": "uri"
}
}
}