layouts: elevation-profile: Add width/height parameters

This commit is contained in:
Martin Rubli
2023-10-15 23:43:57 +02:00
parent c7fb817a0b
commit f1a1b8ed53
2 changed files with 36 additions and 0 deletions

View File

@@ -10,5 +10,23 @@
{{ with .Get "resizable" }}
resizable: {{ . }},
{{ end }}
{{ with .Get "width" }}
width: {{ . }},
{{ end }}
{{ with .Get "height" }}
height: {{ . }},
{{ end }}
{{ with .Get "minWidth" }}
minWidth: {{ . }},
{{ end }}
{{ with .Get "minHeight" }}
minHeight: {{ . }},
{{ end }}
{{ with .Get "maxWidth" }}
maxWidth: {{ . }},
{{ end }}
{{ with .Get "maxHeight" }}
maxHeight: {{ . }},
{{ end }}
};
</script>

View File

@@ -59,6 +59,24 @@ Elevation profile options:
resizable:
Boolean value indicating whether the elevation profile box should be drag & drop resizable.
Optional, defaults to false.
width:
Width of the elevation profile.
Optional, defaults to 360.
height:
Height of the elevation profile.
Optional, defaults to 180.
minWidth:
Minimum width of the elevation profile if resizable.
Optional.
minHeight:
Minimum height of the elevation profile if resizable.
Optional.
maxWidth:
Maximum width of the elevation profile if resizable.
Optional.
maxHeight:
Maximum height of the elevation profile if resizable.
Optional.
Note: Elevation profiles are only supported if exactly one track is present.