Download selected file list from input correspondent to given element id.
Same as downloadFiles but for stream mode.
Same as downloadFiles but for stream mode. The method is useful when user want to upload very large files list which is problematic to keep in memory (especially when count of users is more than one).
Downloads form from client
Downloads form from client
event('submit) { access => access .downloadFormData(myForm) .onProgress { (loaded, total) => // transition … } .start .flatMap { formData => val picture = data.file("picture") // Array[Byte] val title = data.text("title") // String access.transition { // ... transtion } } }
form elementId
Execute arbitrary JavaScript code on client and get stringified JSON back.
Execute arbitrary JavaScript code on client and get stringified JSON back.
access.evalJs("new Date().getTimezoneOffset()").map(offset => ...)
Makes focus on the element
Extracts property of element from client-side DOM.
Extracts property of element from client-side DOM.
event('click) { access => for { request <- access.property(searchField).get('value) result <- searchModel.search(request) _ <- access.transition { case state: State.Awesome => state.copy(list = searchResult) } } yield () }
0.6.0
Publish message to environment.
Gives current session id.
Gives current state.
Applies transition to current state.
Applies transition to current state.
Shortcut for property(id).get(proName)
.
Shortcut for property(id).get(proName)
.
0.6.0
Shortcut for property(id).get('value)
.
Shortcut for property(id).get('value)
.
0.6.0