2-fieldsets.adoc 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [#fieldsets]
  2. = Fieldsets
  3. It is possible to group actions together in a "group", which is not a directory, but is called
  4. a "fieldset". This is an example of a fieldset that contains two xref:dashboards/3-folders.adoc[Folders].
  5. image::fieldset.png[]
  6. Fieldsets are defined under a xref:dashboards/intro.adoc[Dashboards] in your config.yaml.
  7. .`config.yaml`
  8. [source,yaml]
  9. ----
  10. dashboards:
  11. - title: My First Dashboard
  12. contents:
  13. - title: Fieldset 1
  14. type: fieldset
  15. contents: []
  16. - title: Fieldset 2
  17. type: fieldset
  18. contents: []
  19. ----
  20. Fieldsets are also generated for you when you use xref:entities/intro.adoc[Entities].
  21. .`config.yaml`
  22. [source,yaml]
  23. ----
  24. dashboards:
  25. - title: My First Dashboard
  26. contents:
  27. - title: Fieldset 1
  28. type: fieldset
  29. entity: server
  30. contents:
  31. - title: Start {{ server.Name }}
  32. - title: Shutdown {{ server.Name }}
  33. ----