Interface DomServiceIf

All DOM changes of the table go through this service – the third argument of new TableScope(…). Plain TypeScript and most wrappers use SimpleDomService; Angular uses its Renderer2. Cell renderers get it as last argument of CellRendererIf.render.

Example

// inside CellRendererIf.render(cellDiv, …, cellValue, dom)
const badge = dom.createElement<HTMLSpanElement>("span");
dom.addClass(badge, "status-badge");
dom.setStyle(badge, "margin-left", "4px");
badge.textContent = String(cellValue);
dom.appendChild(cellDiv, badge);

Hierarchy

  • DomServiceIf

Implemented by

Methods

  • Removes an attribute (used for ARIA attributes of reused row divs). Optional: without it the table calls ele.removeAttribute(key) itself.

    Parameters

    • ele: HTMLElement
    • key: string

    Returns void

    Since

    1.1.91