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

example.ClientDashboardScreen.scala Maven / Gradle / Ivy

The newest version!
package example

import com.outr.scribe.Logging
import org.hyperscala._
import org.scalajs.dom._

trait ClientDashboardScreen extends DashboardScreen with SimpleClientScreen[html.Div] with Logging {
  def main = byId[html.Div]("example")
  def profileButton = byId[html.Button]("profileButton")

  override def init(state: InitState): Unit = {
    logger.info(s"Dashboard init! (state: $state)")

    profileButton.onclick = (evt: Event) => {
      app.connection.screen := ExampleApplication.profile

      false
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy