Widgets
Widgets enable the creation of custom webviews for user dashboards.
Creating a Widget
widget.compose.json
{
"name": {
"en": "My Widget"
},
"settings": [
{
"id": "my-id",
"type": "text",
"title": {
"en": "My Title"
}
}
],
"height": 100,
"api": {
"getSomething": {
"method": "GET",
"path": "/"
},
"addSomething": {
"method": "POST",
"path": "/"
},
"updateSomething": {
"method": "PUT",
"path": "/:id"
},
"deleteSomething": {
"method": "DELETE",
"path": "/:id"
}
}
}index.html
api.js
preview-<mode>.png
Widget Instance
Translations
Styling
Debugging
Deprecating Widgets
View API
Homey.ready
Homey.api
Homey.on
Homey.__
Homey.getWidgetInstanceId
Homey.getSettings
Homey.setHeight
Homey.popup
Homey.hapticFeedback
Homey.getDeviceIds
Last updated
Was this helpful?