Skip to content

Commit

Permalink
docs(custom): add native examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Apr 1, 2024
1 parent 46cbaca commit ee8873a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/modules/Custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ to help get your head around what's going on:
<button class="power-btn" label="" on_click="!reboot" />
</box>
<label name="uptime" label="Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" />
<clock disable_popup="true" />
</box>
</popup>
</custom>
Expand Down Expand Up @@ -262,6 +263,10 @@ to help get your head around what's going on:
"label": "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}",
"name": "uptime",
"type": "label"
},
{
"type": "clock",
"disable_popup": true
}
]
}
Expand Down Expand Up @@ -319,6 +324,10 @@ type = 'button'
label = '''Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}'''
name = 'uptime'
type = 'label'

[[end.popup.widgets]]
type = 'clock'
disable_popup = true
```

</details>
Expand Down Expand Up @@ -355,6 +364,8 @@ end:
- label: 'Uptime: {{30000:uptime -p | cut -d '' '' -f2-}}'
name: uptime
type: label
- type: clock
disable_popup: true
type: custom
```
Expand All @@ -380,6 +391,7 @@ let {
]
}
{ type = "label" name = "uptime" label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" }
{ type = "clock" disable_popup = true }
]
}

Expand Down

0 comments on commit ee8873a

Please sign in to comment.