Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClassManipulator<T>

Type parameters

  • T

Hierarchy

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

  • Parameters

    • host: T
    • element: () => HTMLElement
        • (): HTMLElement
        • Returns HTMLElement

    Returns ClassManipulator

Properties

Protected Readonly element

element: () => HTMLElement

Type declaration

    • (): HTMLElement
    • Returns HTMLElement

Protected Readonly host

host: T

Methods

add

  • add(...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

after

has

  • has(...classes: string[]): boolean
  • Note: Alias of hasEvery

    Parameters

    • Rest ...classes: string[]

    Returns boolean

hasAny

  • hasAny(...classes: string[]): boolean
  • Parameters

    • Rest ...classes: string[]

    Returns boolean

hasEvery

  • hasEvery(...classes: string[]): boolean
  • Parameters

    • Rest ...classes: string[]

    Returns boolean

hasNone

  • hasNone(...classes: string[]): boolean
  • Parameters

    • Rest ...classes: string[]

    Returns boolean

remove

  • remove(...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

stream

  • stream(): Stream<string>
  • Returns Stream<string>

toggle

  • toggle(...classes: string[]): T
  • toggle(hasClass: boolean, ...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

  • Parameters

    • hasClass: boolean
    • Rest ...classes: string[]

    Returns T

until

values

  • values(): IterableIterator<string>
  • Returns IterableIterator<string>

Object literals

Protected untilHandler

untilHandler: object

add

add: object

end

  • end(...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

start

  • start(...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

remove

remove: object

end

  • end(...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

start

  • start(...classes: string[]): T
  • Parameters

    • Rest ...classes: string[]

    Returns T

toggle

toggle: object

end

  • end(hasClass: boolean, ...classes: string[]): T
  • Parameters

    • hasClass: boolean
    • Rest ...classes: string[]

    Returns T

start

  • start(hasClass: boolean, ...classes: string[]): T
  • Parameters

    • hasClass: boolean
    • Rest ...classes: string[]

    Returns T

Generated using TypeDoc