• Adds a CSS class, or an array of CSS classes to a view template. Only works if done prior to rendering the view.

    Parameters

    • view: default<HTMLElement>

      the view with the element the class should be added to

    • classNames: string | string[]

      a classname or an array of classname strings

    Returns void