Interface zebkit.PathSearch <zebkit>

Interface that provides path search functionality for a tree-like structure.

public <Object> byPath (path, [cb])

Find all children items with the passed path expression.

  • path <String>

    path expression. Path expression is simplified form of XPath-like expression. See Zebkit method to get more details.

  • [cb] <Function>

    function that is called every time a new children component has been found. If callback has not been passed then the method return first found item or null.

Returns: <Object>

found children item or null if no children items were found