View
com.alecdorrington.pageloader.View
trait View
The base trait for all views. Each view corresponds to a distinct page (i.e. at a unique URL) of the website.
Attributes
- Note
-
Every View must be explicitly exported with
@JSExportTopLevel.The appropriate view for each page is selected based on the name injected into the PageTemplate by the server.
- Example
-
import scala.scalajs.js.annotation.JSExportTopLevel @JSExportTopLevel("IndexView") object IndexView extends View: ??? - Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait LaminarView
Members list
In this article