Function toggleClass

Toggle a classList token of an element

0.8.0

  • Type Parameters

    • E extends Element

    Parameters

    • token: string

      class token to be toggled

    • s: SignalLike<boolean> = token

      state bound to the class existence

    Returns (host: UIElement<{}>, target: E, index: number) => void