Resource
Displays a resource dropwell that accepts all file types.
{
"title": "Resource",
"id": "resource",
"resource": {}
}{
"groups": [{
"title": "Resource Example",
"icon": "folder",
"properties": [{
"title": "Resource",
"id": "resource",
"resource": {}
}]
}]
}Restricting File Types
You can restrict the file types allowed in a dropwell, by using the accepts property.
"resource": {
"accepts": "svg"
}Support for multiple file types can be added using comma seperated values.
"resource": {
"accepts": "zip, pdf"
}Getting the Resource Path
To get the path to a resource, append the path prop to the {{resource}} object, i.e. {{resource.path}}. This is important if you want to link to anything other than an image.
<source src="{{myVideo.path}}" type="video/mp4">Last updated
Was this helpful?

