mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 10:04:24 +00:00
layouts: elevation-profile: Add width/height parameters
This commit is contained in:
@@ -10,5 +10,23 @@
|
|||||||
{{ with .Get "resizable" }}
|
{{ with .Get "resizable" }}
|
||||||
resizable: {{ . }},
|
resizable: {{ . }},
|
||||||
{{ end }}
|
{{ 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>
|
</script>
|
||||||
|
@@ -59,6 +59,24 @@ Elevation profile options:
|
|||||||
resizable:
|
resizable:
|
||||||
Boolean value indicating whether the elevation profile box should be drag & drop resizable.
|
Boolean value indicating whether the elevation profile box should be drag & drop resizable.
|
||||||
Optional, defaults to false.
|
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.
|
Note: Elevation profiles are only supported if exactly one track is present.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user