Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

constructor

Properties

cssClasses

cssClasses: ISelectors

id

id: string

ids

ids: ISelectors

Methods

addRule

  • addRule(id: string, selector: string, style: Partial<CSSStyleDeclaration>): undefined | string
  • 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 undefined | string

    the id again

deleteRule

  • deleteRule(id: string): void

destroy

  • destroy(): void

remove

  • remove(tableId: string): void
  • removes a given tableId if not needed anymore

    Parameters

    • tableId: string

      tableId to remove

    Returns void

update

  • update(defaultRowHeight: number, columns: IColumn[], padding: function, frozenShift: number, tableId: string, unit?: string): void
  • updates the column widths and default row height for a table

    Parameters

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

          • index: number

          Returns number

    • frozenShift: number

      shift frozen colums

    • tableId: string

      optional tableId in case of multiple tables within the same engine

    • Default value unit: string = "px"

    Returns void

updateRule

  • updateRule(id: string, selector: string, style: Partial<CSSStyleDeclaration>): undefined | string
  • updates or add a rule, see @addRule

    Parameters

    • id: string

      unique id of the rule for later identification

    • selector: string

      the css selector

    • style: Partial<CSSStyleDeclaration>

      the style attributes

    Returns undefined | string

    the id again