-
-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow nested components #20
Comments
it seems like it’s just the parent container name “My Dashboard” you’re after, right? otherwise you could have three separate components and arrange them as you have in the diagram. |
Yeah pretty much. |
Hey @pjmp, |
In my use case, i was thinking of just having a bordered box with title not expecting it to be moved, however others might have different use cases tho. |
In this case I would suggest to not comlicate current layout with nesting support for now, since logical separation can be done with the empty textboxes:
- title: My dashboard
position: [[14, 9], [47, 23]]
sample: echo "" # JUST ECHO EMPTY STRING HERE
runcharts:
- title: Search engine response time
position: [[15, 19], [45, 12]]
items:
- label: GOOGLE
color: 178
sample: curl -o /dev/null -s -w '%{time_total}' https://www.google.com
- label: YAHOO
sample: curl -o /dev/null -s -w '%{time_total}' https://search.yahoo.com
sparklines:
- title: CPU usage
position: [[15, 10], [22, 8]]
rate-ms: 200
scale: 0
sample: ps -A -o %cpu | awk '{s+=$1} END {print s}'
- title: Free memory pages
position: [[37, 10], [23, 8]]
rate-ms: 200
scale: 0
sample: memory_pressure | grep 'Pages free' | awk '{print $3}' |
Closing due to inactivity. Result can be achieved with existing functionality |
It'd be nice to have something like:
The text was updated successfully, but these errors were encountered: