treeloom
    Preparing search index...

    Function getChildrenByClass

    • Helper for getting all domGeneral.DomItems starting at item and carrying the given class, among possibly several space-separated classes on that item - the same membership check as the real DOM's classList.contains, not an exact match of the whole className attribute string (which getChildrenFromAttribute does, and which would miss an item that also carries other classes).

      Parameters

      • className: string

        The one class being searched for

      • item: DomItem = ...

        The DomItem which may have child items carrying the class

      Returns DomItem[]