mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 01:54:24 +00:00
layouts: elevation-profile: Add width/height parameters
This commit is contained in:
@@ -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>
|
||||
|
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user