Web UI component: j-Display


  • Info
  • HTML
  • JS
  • CSS
  • Meta

The component measures a display size according to the current element. It uses WIDTH() method and appends a CSS class in the form jc-DISPLAY_SIZE:

  • jc-xs extra small display (mobile phone)
  • jc-sm small display (tablet)
  • jc-md medium display (laptop)
  • jc-lg large display (desktop computer)

Configuration:

  • delay {Number} a delay for obtaining of size (default: 100 ms)

Author