Skip to content

Commit 190947c

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file #1140
1 parent 5edb615 commit 190947c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

extras/configs/helpers.js

+10
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ module.exports = {
2020
}
2121
},
2222
toggleWidget: (options) => {
23+
// widgetId: widget identifier
24+
// icon: icon to be displayed
25+
// showMessage: label or tooltip to be displayed when not toggled
26+
// hideMessage: label or tooltip to be displayed when toggled
27+
// renderer: renderer of the action
2328
const params = Object.assign({ renderer: 'item' }, options)
2429
return {
2530
id: `toggle-${params.widgetId}`,
@@ -36,6 +41,11 @@ module.exports = {
3641
}
3742
},
3843
toggleSticky: (options) => {
44+
// stickyId: sticky identifier
45+
// icon: icon to be displayed
46+
// showMessage: label or tooltip to be displayed when not toggled
47+
// hideMessage: label or tooltip to be displayed when toggled
48+
// renderer: renderer of the action
3949
const params = Object.assign({ renderer: 'item' }, options)
4050
return {
4151
id: `toggle-${params.stickyId}`,

0 commit comments

Comments
 (0)