• Set the given cell and ** all "child" cells ** to the given collapse / expand if cell is a markdown header.

    Parameters

    • cell: Cell<ICellModel>

      The cell

    • collapsing: boolean

      Whether to collapse or expand the cell

    • notebook: StaticNotebook

      The target notebook widget.

    Returns number