Skip to content

hd-house-side

Live preview

<hd-energy-house grid="-450" solar="2600" navigation="tabs">  <hd-house-side name="front" label="Street side" preset="terraced"></hd-house-side>  <hd-house-side name="back" label="Garden side" preset="detached"></hd-house-side></hd-energy-house>

Attributes and example

hd-house-side

One side of the owner’s house on an hd-energy-house, written inside it, up to six; draws nothing itself. A house setting fills them with a {% for %}.

AttributeWhat it is
namerequiredThe side’s id, e.g. back.
labelThe name its tab shows, e.g. Garden side.
uploadIts picture: an uploaded picture’s id.
presetOne of Tiledash’s houses instead of a picture; its size and box are then its own, and its spots unless spots says otherwise.One of detached, terraced, semi-detached, bungalow, flat.
srcIts picture from a web address instead (https or http).
widthThe picture’s width in pixels.Default 1536.
heightThe picture’s height in pixels.Default 1024.
boxWhere the house is in the picture: x y width height. The whole picture if left out.
spotsWhere its spots are placed, in the picture’s pixels, as JSON: {"solar":[745,240],"own-pool":[1250,820]}.
tonedark for a dark picture, which a dark theme doesn’t dim.One of light, dark. Default light.
<hd-energy-house grid="-450" solar="2600" navigation="tabs">  <hd-house-side name="front" label="Street side" preset="terraced"></hd-house-side>  <hd-house-side name="back" label="Garden side" preset="detached"></hd-house-side></hd-energy-house>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

No component-specific CSS variables are exposed. Use the host element’s sizing and the documented theme variables.

Style the host

hd-house-side {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables