Class GridStyleManager

utility for custom generated CSS rules with a focus on dynamically generated grid layouts

Hierarchy (view full)

Constructors

Properties

cssClasses: ISelectors
id: string
ids: ISelectors

Accessors

  • get ruleNames(): string[]
  • get a list of all registered rule ids

    Returns string[]

Methods

  • add a custom css rule

    Parameters

    • id: string

      unique id of the rule for later identification

    • selector: string

      the css selector

    • style: Partial<CSSStyleDeclaration>

      the style attributes

    Returns null | string

    the id again

  • removes a given tableId if not needed anymore

    Parameters

    • tableId: string

      tableId to remove

    Returns void

  • updates the column widths and default row height for a table

    Parameters

    • defaultRowHeight: number
    • columns: IColumn[]
    • padding: ((index) => number)
        • (index): number
        • Parameters

          • index: number

          Returns number

    • frozenShift: number

      shift frozen columns

    • tableId: string

      optional tableId in case of multiple tables within the same engine

    • unit: string = 'px'

    Returns void

  • updates or add a rule, see

    Parameters

    • id: string

      unique id of the rule for later identification

    • selector: string

      the css selector

    • style: Partial<CSSStyleDeclaration>

      the style attributes

    Returns null | string

    the id again

    Add Rule