components/flashbox/flashbox.component.js
/**
     * Use this method to start flashbox flashing.
     * FlashBox will be flashing until stopFlashing() method is called.
     */
Use this method to start flashbox flashing.
FlashBox will be flashing until stopFlashing() method is called.
Use this method to start flashbox flashing . FlashBox will be flashing until stopFlashing () method is called .
startFlashing() {
        if ((this._intervalCounterObserver != null && !this._intervalCounterObserver.closed) || this.isShown) {
            console.error("FlashBox component is either shown or flashing");
            this._busy.emit();
            return;
        }
        this._intervalCounterHandler = Rx_1.Observable.timer(0, this._setTimeout + 1000);
        this._intervalCounterObserver = this._intervalCounterHandler.subscribe((num) => {
            this.toggle();
        });
    }
startFlashing ( ) { if ( ( this . _intervalCounterObserver != null && ! this . _intervalCounterObserver . closed ) || this . isShown ) { console . error ( "FlashBox component is either shown or flashing" ) ; this . _busy . emit ( ) ; return ; } this . _intervalCounterHandler = Rx_1 . Observable . timer ( 0 , this . _setTimeout + 1000 ) ; this . _intervalCounterObserver = this . _intervalCounterHandler . subscribe ( ( num ) => { this . toggle ( ) ; } ) ; }
Use this method to start flashbox flashing.
Use this method to start flashbox flashing .
//if flashbox is flashing or visible emit busy event        //this._intervalCounterHandler=Observable.timer(0, parseInt(this._setTimeout)+1000);