WebSharper UI.Next Version 0.1.31.32 has been released on NuGet for your experimentation.
This version begins our push toward better handling of input. In particular, the latest version provides views of mouse and keyboard inputs, and combinators to allow snapshots of views and predicated view updates.
static member SnapshotOn : 'B -> View<'A> -> View<'B> -> View<'B> static member UpdateWhile : 'A -> View<bool> -> View<'A> -> View<'A>
SnapshotOn combinator allows snapshots to be taken of a view whenever a 'trigger' view updates. This makes it useful for reacting to events, and has helped with our ongoing work to implement Piglets using UI.Next.
UpdateWhile combinator provides a view which only updates whenever the value of a given predicate view is true.
While we don't provide first-class discrete event streams just yet, such combinators make it possible to emulate them.
You can find more information in the Documentation.
The Input module provides views of the mouse and keyboard, such as keys and buttons pressed, and the mouse position. This will be expanded in the near future.
And the rest!
Additionally, there's now support for delayed animation, which is useful when developing visualisations with staggered transitions, and some bugfixes.
You can find samples of the Mouse and Keyboard views, as well as the snapshotting and predicated update functions on the UI.Next website. As ever, if you've been using UI.Next and have any comments, we'd love to hear them.
- Computation Expression syntax for Views did not compile with WebSharper