Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Styling

A namespace for node styling.

Index

Functions

styleNode

  • styleNode(node: HTMLElement, className?: string): void
  • Style a node and its child elements with the default tag names.

    Parameters

    • node: HTMLElement

      The base node.

    • Optional className: string

      The optional CSS class to add to styled nodes.

    Returns void

styleNodeByTag

  • styleNodeByTag(node: HTMLElement, tagName: string, className?: string): void
  • Style a node and its elements that have a given tag name.

    Parameters

    • node: HTMLElement

      The base node.

    • tagName: string

      The html tag name to style.

    • Optional className: string

      The optional CSS class to add to styled nodes.

    Returns void

wrapSelect

  • wrapSelect(node: HTMLSelectElement): HTMLElement
  • Wrap a select node.

    Parameters

    • node: HTMLSelectElement

    Returns HTMLElement

Generated using TypeDoc