All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.raquo.waypoint.Renderer.scala Maven / Gradle / Ivy

There is a newer version: 8.0.1
Show newest version
package com.raquo.waypoint

trait Renderer[-Page, +View] {

  /** Called for next page. Return Some(el) to be rendered if the page belongs to this renderer, or None otherwise.
    * This call creates actual elements. Do not discard its result just to see if the route is defined, it would be inefficient.
    */
  def render(rawNextPage: Page): Option[View]

  /** Called when the next page belongs to a different renderer */
  def discard(): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy