ForgeComponents
en

Components

j-MinHeight

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

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.

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>