Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace rendererUtils

Index

Variables

noRenderer: { template: string; update: () => void } = ...

Type declaration

  • template: string
  • update: () => void
      • (): void
      • Returns void

Functions

  • adaptDynamicColorToBgColor(node: HTMLElement, bgColor: string, title: string, width: number): void
  • Adapts the text color for a given background color

    Parameters

    • node: HTMLElement

      the node containing the text

    • bgColor: string

      as #ff0000

    • title: string

      the title to render

    • width: number

      for which percentages of the cell this background applies (0..1)

    Returns void

  • adaptTextColorToBgColor(bgColor: string): string
  • Adapts the text color for a given background color

    Parameters

    • bgColor: string

      as #ff0000

    Returns string

    returns black or white for best contrast

  • wideEnough(col: IArrayColumn<any>, length?: number): boolean