API Reference§
Here you will find API Reference documentation and code samples for the entire Janus package export.
The navigation menu on the left is searchable by object and member name.
App
@constructor App
.views Library
#view View?
.resolvers Library
#resolve Varying[types.result]?
#resolver Resolver
Attribute
@constructor Attribute
#getValue Varying[*]
#getValue_ *|null
#setValue void
#unsetValue void
#serialize *|null
.transient Boolean
#default *?
.writeDefault Boolean
.model Model
.key Model
#_values Binding[Listlike[T]]
#nullable Boolean
@modelClass @Model
@of @ModelAttribute
@listClass @List
@of @ListAttribute
#request Binding[Request]
@to @ReferenceAttribute
.autoResolve Boolean
#resolveWith void
Base
#on self
#off self
#emit Boolean
#listeners Array[(…* → void)]
#removeAllListeners self
#listenTo self
#unlistenTo self
#reactTo Observation
#destroyWith self
#destroy void
@managed (void → Base)
#tap self
@constructor Base
#_destroy void
Case
@build { String : (* → Case) }
#get T
#{x}OrElse T|U
#get{X} T|Case[*]
#match Boolean|U?
#toString String
#map Case[U]
#map{X} Case[U]
λmatch Case[…*] → *
λotherwise Otherwise[*]
DomView
@build @DomView
λfind Template
λfindλbuild find
λtemplate Template
.attr Template
.prop Template
.classed Template
.classGroup Template
.css Template
.text Template
.html Template
.render Template
.on Template
@constructor DomView
#artifact $Node
#pointer types.from → Varying[*]
#attach $Node
#wireEvents void
#parent Varying[View?]
#parent_ View?
#closest Varying[View?]
#closest_ View?
#into Varying[View?]
#into_ View?
#intoAll List[View]
#intoAll_ Array[View]
#_wireEvents void
#_render $Node
#_attach void
@viewModelClass @Model?
from
from FromPart[…*, dynamic[T]]
#{x} FromPart[…*, {x}[T]]
#and from
#map FromPart[…*, U]
#flatMap FromPart[…*, U]
#get FromPart[…*, U]
#attribute FromPart[…*, Attribute]
#pipe FromPart[…*, U]
#asVarying FromPart[…*, Varying[T]]
.all From[…*]
#map From[U]
#flatMap From[U]
#point UnreducedVarying[…*]
@build from
List
@constructor List|List[T]
@deserialize List
#add void
#set void
#remove T?
#removeAt T?
#removeAll Array
#move T?
#moveAt T
#at Varying[*?]
#at_ *?
.length Varying[Int]
.length_ Int
#empty Varying[Boolean]
#empty_ Boolean
#nonEmpty Varying[Boolean]
#nonEmpty_ Boolean
.list Array
#map List[U]
#flatMap List[U]
#mapPairs List[U]
#flatMapPairs List[U]
#filter List[T]
#take List[T]
#flatten List[*]
#concat List[*]
#uniq List[*]
#serialize [*]
#includes Varying[Boolean]
#indexOf Varying[Int]
#any Varying[Boolean]
#min Varying[Number]
#max Varying[Number]
#sum Varying[Number]
#enumerate List[Int]
#enumerate_ Array[Int]
#diff Varying[Boolean]
Map
@constructor Map
@deserialize Map
#set void|(value: * → void)
#unset void
#get Varying[*]
#get_ *|null
#shadow Map|T
#with Map
#revert void
#original Map
#mapPairs Map
#flatMapPairs Map
#serialize {*}
#enumerate Set[String]
#keys Set[String]
#enumerate Array[String]
#keys_ Array[String]
#values List[*]
#values_ List[*]
.length Varying[Int]
.length_ Int
#diff Varying[Boolean]
#modified Varying[Boolean]
Model
@build @Model
λattribute Schema → void
λbind Schema → void
λinitial Schema → void
λinitial.writing Schema → void
λtransient Schema → void
λvalidate Schema → void
Trait Builder
@constructor Model
@deserialize Model
#set void|(value: * → void)
#unset void
#get *|null
#get_ *|null
#attribute Attribute?
#attributes Array[Attribute]
#pointer types.from → Varying
#validations List[types.validity]
#errors List[*]
#valid Varying[Boolean]
#shadow Model|T
#with Map
#revert void
#original Model
#mapPairs Model
#flatMapPairs Model
#serialize {*}
#enumerate Set[String]
#keys Set[String]
#enumerate_ Array[String]
#keys_ Array[String]
#values List[*]
#values_ Array[*]
.length Varying[Int]
.length_ Int
#diff Varying[Boolean*]
#modified Varying[Boolean*]
#_preinitialize void
#_initialize void
Observation
#stop void
Set
@constructor Set|Set[T]
@deserialize Set
#add void
#remove T?
#includes Varying[Boolean]
#includes_ Boolean
.length Varying[Int]
.length_ Int
#map List[U]
#flatMap List[U]
#filter List[T]
#flatten Set[*]
#uniq this
#serialize [*]
#any Varying[Boolean]
#min Varying[Number]
#max Varying[Number]
#sum Varying[Number]
#enumerate this
#enumerate_ Array[*]
Varying
@constructor Varying[T]
@box Varying[T]
@of Varying[T]
#get T
#set void
#react Observation
#map Varying[U]
#flatMap Varying[U]
#flatten Varying[T]
#pipe Varying[U]
@mapAll Varying[U]
@flatMapAll Varying[U]
@lift (…xs: …V[*] → y: V[U])
@all UnreducedVarying[*, …]
@managed Varying[T]
#refCount Varying[Int]