Tyrian

object Tyrian
class Object
trait Matchable
class Any
Tyrian.type

Type members

Types

type Event = Event
type HTMLInputElement = HTMLInputElement
type KeyboardEvent = KeyboardEvent

Value members

Concrete methods

def render[Model, Msg](includeDocType: Boolean, model: Model, view: Model => Html[Msg]): String

Takes a normal Tyrian Model and view function and renders the html to a string prefixed with the doctype.

Takes a normal Tyrian Model and view function and renders the html to a string prefixed with the doctype.

def render[Model, Msg](model: Model, view: Model => Html[Msg]): String

Takes a normal Tyrian Model and view function and renders the html to a string.

Takes a normal Tyrian Model and view function and renders the html to a string.

def render[Model, Msg](includeDocType: Boolean, html: Html[Msg]): String

Takes a Tyrian HTML view, and renders it into to a string prefixed with the doctype.

Takes a Tyrian HTML view, and renders it into to a string prefixed with the doctype.

def render[Model, Msg](html: Html[Msg]): String

Takes a Tyrian HTML view, and renders it into to a string.

Takes a Tyrian HTML view, and renders it into to a string.

def render[Model, Msg](includeDocType: Boolean, elems: List[Elem[Msg]]): String

Takes a list of Tyrian elements, and renders the fragment into to a string prefixed with the doctype.

Takes a list of Tyrian elements, and renders the fragment into to a string prefixed with the doctype.

def render[Model, Msg](elems: List[Elem[Msg]]): String

Takes a list of Tyrian elements, and renders the fragment into to a string.

Takes a list of Tyrian elements, and renders the fragment into to a string.

def render[Model, Msg](includeDocType: Boolean, elems: Elem[Msg]*): String

Takes repeatingTyrian elements, and renders the fragment into to a string prefixed with the doctype.

Takes repeatingTyrian elements, and renders the fragment into to a string prefixed with the doctype.

def render[Model, Msg](elems: Elem[Msg]*): String

Takes repeating Tyrian elements, and renders the fragment into to a string.

Takes repeating Tyrian elements, and renders the fragment into to a string.

def start[Model, Msg](node: Element, init: (Model, Cmd[Msg]), update: (Msg, Model) => (Model, Cmd[Msg]), view: Model => Html[Msg], subscriptions: Model => Sub[Msg]): Unit

Computes the initial state of the given application, renders it on the given DOM element, and listens to user actions

Computes the initial state of the given application, renders it on the given DOM element, and listens to user actions

Type parameters:
Model

Type of model

Msg

Type of messages

Value parameters:
init

initial state

node

the DOM element to mount the app to

subscriptions

subscriptions function

update

state transition function

view

view function

Returns:

The tyrian runtime