Skip to content

Commit 0f75cd2

Browse files
committed
content: usage: advanced: DIY config style inheriting and auto-saving
1 parent d4f8314 commit 0f75cd2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

51.6 KB
Loading

content/usage/advanced/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,15 @@ modifying basic appearance characteristics:
689689
It is possible to change the decimal resolution of the displayed statistics, and the limit the number
690690
of plotted samples to improve visibility and performance.
691691

692-
#### Do It Yourself Widget
692+
#### Do It Yourself (DIY) Widget
693693

694694
- Completely custom elements, code logic, and styling
695695
{{ easy_image(src="diy-widget-config", width=550, center=true) }}
696696
- Runs code automatically when Cockpit starts/refreshes
697+
- Can save and apply updates automatically (while editing), or be configured to only apply changes manually
698+
- Auto-save should generally be disabled while editing JavaScript functionality, but can be convenient
699+
while modifying a widget's visual interface / styling
700+
- Can inherit styles from the Cockpit interface, or use completely independent styles
697701
- Can listen to, create, and modify [data-lake variables](#data-lake), and register and/or execute Actions
698702
using the Cockpit API (`window.cockpit.*`)
699703
- Can be exported to or imported from a JSON file with `"html"`, `"css"`, and `"js"` string fields

0 commit comments

Comments
 (0)