EndSlide

This class extends the Slide class and models the end slide.

/**
 * Returns 'End'
 *
 * @returns {string}
 */
getType() 

/**
 * Returns true if the results have already been fetched 
 * from the server and can be displayed.
 *
 * @returns {boolean}
 */
areResultsLoaded() 

/**
 * Returns the number of featured products.
 * 
 * @returns {*|number}
 */
getNumberOfFeaturedProducts() 

/**
 * Returns the add all to cart title.
 *
 * @returns {*}
 */
getAddAllToCartTitle() 

/**
 * Adds featured products to cart
 */
addAllToCart() 

/**
 * Fetches the results from the server and returns a promise 
 * that when resolved will contain the results.
 *
 * @returns {Promise<Result>}
 */
getResults()

/**
 * Restart the quiz.
 */
restart() 

/**
 * Return true if we can go back to the previous slide.
 *
 * @returns {boolean}
 */
canBack()

/**
 * Goes back and enters again the 'doing' state.
 */
back() 

/**
 * Returns true if results has to be displayed in slots
 *
 * @returns {boolean}
 */
hasSlots() 

/**
 * Returns the slot definition.
 *
 * @returns {map}
 */
getSlots()

Last updated