mosaicode/extensions/javascript/blocks/webaudio/Form/Title.json

38 lines
934 B
JSON

{
"source": "JSON",
"data": "BLOCK",
"version": "0.0.1",
"type": "javascript.form.title",
"language": "javascript",
"extension": "webaudio",
"help": "Window Title",
"label": "Title",
"color": "#F92317",
"group": "Form",
"codes": [
{
"name": "declaration",
"code": "\nvar $port[title]$ = function(value){\n window.document.title = value;\n return 1;\n}\n"
},
{
"name": "onload",
"code": "\n$port[title]$('$prop[title]$');\n\n "
}
],
"properties": [
{
"name": "title",
"label": "Value",
"type": "String",
"value": "Mosaicode - Document Title"
}
],
"ports": [
{
"conn_type": "input",
"name": "title",
"label": "Value",
"type": "javascript.string"
}
]
}