Class UIUtil

UIUtil

Class Summary
Constructor Attributes Constructor Name and Description
 
UIUtil()
UiUtil is teh util class helps to calculate or evaluate some util functions.

Method Summary

Class Detail

UIUtil()
UiUtil is teh util class helps to calculate or evaluate some util functions.
require('UIUtil')

Method Detail

  • <static> UIUtil.colorToHex(color,)
    Returns the predefined hex color for the color it is coming in the UI part.
    Parameters:
    {Object} color,
    the color name
    Returns:
    Hex code for the color is returned.
  • <static> UIUtil.lightenColor(col)
    method to lighten the color with predefined light colors
    Parameters:
    {Object} col
    Returns:
    color A lighten color is returned.
  • <static> UIUtil.lightenDarkenColor(col, amt)
    method to mathematically lighten the color
    Parameters:
    {Object} col
    {Object} amt
    +ve the color will be lighter, if -ve the result will be darker
    Returns:
    color A lighten color is returned.
  • <static> UIUtil.randomColor()
    method to randomly select one color out of teh given set of colurs.
    Returns:
    color A Random color is returned.