playground/assets/dflip/js/dflip.js
/**
         * Prepend a button before an outline item which allows the user to toggle
         * the visibility of all outline items at that level.
         *
         * @private
         */
Prepend a button before an outline item which allows the user to toggle
the visibility of all outline items at that level.

@private
Prepend a button before an outline item which allows the user to toggle the visibility of all outline items at that level . @private
function BookMarkViewer_addToggleButton(div) {
            var toggler = document.createElement('div');
            toggler.className = this.outlineToggleClass + " " + this.outlineToggleHiddenClass;
            toggler.onclick = function (event) {
                event.stopPropagation();
                toggler.classList.toggle(this.outlineToggleHiddenClass);
                if (event.shiftKey) {
                    var shouldShowAll = !toggler.classList.contains(this.outlineToggleHiddenClass);
                    this._toggleOutlineItem(div, shouldShowAll);
                }
            }.bind(this);
            div.insertBefore(toggler, div.firstChild);
        }
function BookMarkViewer_addToggleButton ( div ) { var toggler = document . createElement ( 'div' ) ; toggler . className = this . outlineToggleClass + " " + this . outlineToggleHiddenClass ; toggler . onclick = function ( event ) { event . stopPropagation ( ) ; toggler . classList . toggle ( this . outlineToggleHiddenClass ) ; if ( event . shiftKey ) { var shouldShowAll = ! toggler . classList . contains ( this . outlineToggleHiddenClass ) ; this . _toggleOutlineItem ( div , shouldShowAll ) ; } } . bind ( this ) ; div . insertBefore ( toggler , div . firstChild ) ; }
Prepend a button before an outline item which allows the user to toggle
 the visibility of all outline items at that level.
Prepend a button before an outline item which allows the user to toggle the visibility of all outline items at that level .