src/main/resources/META-INF/resources/webjars/bundle.js
/**
     * Activates the next {@link CardLayoutItem} of this container, and setting the specified object as payload<br>
     * The previous Event will be activated<br>
     *
     * will return null and do nothing if currently the last 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 next  CardLayoutItem of this container, and setting the specified object as payload
The previous Event will be activated

will return null and do nothing if currently the last 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 next CardLayoutItem of this container and setting the specified object as payload The previous Event will be activated will return null and do nothing if currently the last item is active . @param { jsweet . lang . Object [] } params - The payload to set to the next CardLayoutItem being activated @return { CardLayoutItem } - The CardLayoutItem being activated .
next(...params) {
        if (this.currentIndex < (this.getChildren().length - 1)) {
            const current = this.getItem(this.currentIndex);
            const validateEvent = new CustomEvent("validate");
            validateEvent["source"] = current;
            validateEvent["valid"] = true;
            current.fireListener("validate", validateEvent);
            const isValid = validateEvent["valid"];
            if (isValid) {
                this.currentIndex++;
                const item = this.getItem(this.currentIndex);
                this.activate.apply(this, [item.getName()].concat(params));
                const nextEvent = new CustomEvent("next");
                nextEvent["from"] = current;
                nextEvent["to"] = item;
                nextEvent["source"] = current;
                nextEvent["dest"] = item;
                this.fireListener("next", nextEvent);
                return item;
            }
            else {
                return null;
            }
        }
        else {
            return null;
        }
    }
next ( ... params ) { if ( this . currentIndex < ( this . getChildren ( ) . length - 1 ) ) { const current = this . getItem ( this . currentIndex ) ; const validateEvent = new CustomEvent ( "validate" ) ; validateEvent [ "source" ] = current ; validateEvent [ "valid" ] = true ; current . fireListener ( "validate" , validateEvent ) ; const isValid = validateEvent [ "valid" ] ; if ( isValid ) { this . currentIndex ++ ; const item = this . getItem ( this . currentIndex ) ; this . activate . apply ( this , [ item . getName ( ) ] . concat ( params ) ) ; const nextEvent = new CustomEvent ( "next" ) ; nextEvent [ "from" ] = current ; nextEvent [ "to" ] = item ; nextEvent [ "source" ] = current ; nextEvent [ "dest" ] = item ; this . fireListener ( "next" , nextEvent ) ; return item ; } else { return null ; } } else { return null ; } }
Activates the next {@link CardLayoutItem} of this container, and setting the specified object as payload<br>
 The previous Event will be activated<br>
Activates the next { @link CardLayoutItem } of this container and setting the specified object as payload<br > The previous Event will be activated<br >