• Adds a CSS class, or an array of CSS classes to a view's element. Only works if the view has already been rendered.

    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