Interface DrekCssClasses

An accessor to CSS classes of some element.

Can be obtained by drekCssClassesOf function.

Hierarchy

  • DrekCssClasses

Methods

Methods

  • Adds CSS class to target element.

    The same CSS class can be supplied multiple times. In this case the class would be removed when no more suppliers left.

    Utilizes a namespace aliaser of element rendering context for resolving class names.

    Schedules element CSS updates via element rendering context.

    Parameters

    • className: QualifiedName

      CSS class name to add. Either a string or qualified one.

    • Optional user: SupplyPeer

      A supply peer of the CSS class. When specified, its supply us returned from the method call.

    Returns Supply

    Added CSS class supply that removes the class once cut off, unless there are other supplies of the same class.

  • Checks whether the target element has the given CSS class.

    Parameters

    • className: QualifiedName

      CSS class name to check. Either a string or qualified one.

    Returns boolean

    true if the target element has this class, or false otherwise.

Generated using TypeDoc