.jsweet/candies/js/engine-1.0.0-SNAPSHOT/bundle.js
/**
     * Activates the previous {@link CardLayoutItem} of this container, and setting the specified object as payload<br>
     * will return null and do nothing if currently the first item is active.
     * @param {jsweet.lang.Object[]} params - The payload to set to the next {@link CardLayoutItem} being activated
     * @return {CardLayoutItem} - The {@link CardLayoutItem} being activated.
     */
Activates the previous  CardLayoutItem of this container, and setting the specified object as payload
will return null and do nothing if currently the first item is active.
@param {jsweet.lang.Object[]} params - The payload to set to the next  CardLayoutItem being activated
@return {CardLayoutItem} - The  CardLayoutItem being activated.
Activates the previous CardLayoutItem of this container and setting the specified object as payload will return null and do nothing if currently the first item is active . @param { jsweet . lang . Object [] } params - The payload to set to the next CardLayoutItem being activated @return { CardLayoutItem } - The CardLayoutItem being activated .
previous(...params) {
        if (this.currentIndex > 0) {
            const current = this.getItem(this.currentIndex);
            this.currentIndex--;
            const item = this.getItem(this.currentIndex);
            this.activate.apply(this, [item.getName()].concat(params));
            const previousEvent = new CustomEvent("previous");
            previousEvent["from"] = current;
            previousEvent["to"] = item;
            previousEvent["source"] = current;
            previousEvent["dest"] = item;
            this.fireListener("previous", previousEvent);
            return item;
        }
        else {
            return null;
        }
    }
previous ( ... params ) { if ( this . currentIndex > 0 ) { const current = this . getItem ( this . currentIndex ) ; this . currentIndex -- ; const item = this . getItem ( this . currentIndex ) ; this . activate . apply ( this , [ item . getName ( ) ] . concat ( params ) ) ; const previousEvent = new CustomEvent ( "previous" ) ; previousEvent [ "from" ] = current ; previousEvent [ "to" ] = item ; previousEvent [ "source" ] = current ; previousEvent [ "dest" ] = item ; this . fireListener ( "previous" , previousEvent ) ; return item ; } else { return null ; } }
Activates the previous {@link CardLayoutItem} of this container, and setting the specified object as payload<br>
 will return null and do nothing if currently the first item is active.
Activates the previous { @link CardLayoutItem } of this container and setting the specified object as payload<br > will return null and do nothing if currently the first item is active .