Web component: j-ViewBox


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-ViewBox

  • keeps a fixed percentage height
  • great usage for intranet applications
  • supports releasing
  • optimized for jComponent +v17

Configuration:

  • height {Number} a percentage of height
  • disabled {Boolean} optional, can disable a content with the layer
  • parent {String} optional, a container with fixed height, can be window. Default value: parent element.
  • minheight {Number} a minimal height in pixels (default: 0 - disabled)
  • scroll {Boolean} enables vertical scrolling (default: false - disabled)
  • scrollbar {Boolean} shows scrollbar (default: false)
  • delay {Number} msec. resizes the box again if the value is changed according to the path (default: 100)
  • visibleY {Boolean} still shows Y scrollbar (default: false)
  • visibleX {Boolean} still shows X scrollbar (default: false)
  • margin {Number} optional, a top/bottom margin together (default: 0)
  • NEW: scrolltop {Boolean} scrolls to top automatically if the path is changed (default: false)

Methods:

  • component.scrolltop(val) scrolls Y
  • component.scrollbottom(val) scrolls Y from bottom side
  • component.resize() resizes container (it reacts on resize events automatically)

Author

Browser‘s Save action performs Preview