# j-MinHeight

> This component sets a minimal height for the parent (defined) element. The component is usefull for intranet applications.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 2a53bd9287bd687a374aedbcfba5075e55029fc99f5226853e0cd09379980cd0
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

This component sets a minimal height for the `parent` (defined) element. The component is usefull for intranet applications.


__Configuration__:

- `parent {String}` a parent container which sets a minimal height (default: `parent`)
- `margin {Number}` a margin (default: `0`)
- `topoffset {Boolean}` applies `element.offset().top` as a margin (default: `false`)
- `topposition {Boolean}` applies `element.position().top` as a margin (default: `false`)
- `attr {String}` CSS attribute for setting of height (default: `min-height`)
- `minheight {Number}` a min. height (default: not defined)
- `disabledxs {Boolean}` disables height for `xs` display
- `disabledsm {Boolean}` disables height for `sm` display
- `disabledmd {Boolean}` disables height for `md` display
- `disabledlg {Boolean}` disables height for `lg` display

Use it with `<ui-component name="minheight">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<style>body{margin:0;padding:0}</style>
<ui-component name="minheight" path="datasource" config="parent:window" style="border:1px solid red"></ui-component>
```
