lwd
lwd copied to clipboard
Lightweight document
Hi, I was trying out the Brr backend and had a couple of questions. ```ocaml let ui = let count = Lwd.var 0 in let on_click () = Lwd.set count...
Update the README.md file to include labelled argument f for Lwd.map and Lwd.map2 signatures and examples Since the `lwd.mli` file clearly has labelled arguments for [map](https://github.com/let-def/lwd/blob/adebdfa2c31c7884d352efe821ff38b85e7aa8f9/lib/lwd/lwd.mli#L20) and [map2](https://github.com/let-def/lwd/blob/adebdfa2c31c7884d352efe821ff38b85e7aa8f9/lib/lwd/lwd.mli#L23) This caused...
This PR introduces a scheduler for updating the DOM, such that it is no longer necessary to manually use Lwd.root and to call requestAnimationFrame. The important part is this new...
Test scrollbars with: ``` open Nottui module W = Nottui_widgets let () = W.string "Hello world" |> Ui.resize ~w:200 ~h:100 |> Lwd.pure |> W.scrollbox |> W.h_pane @@ Lwd.pure Ui.empty |>...
Being able to use `Lwd.t` for every Tyxml_lwd element's parameter is awesome, but when writing large documents, that's a lot of `Lwd.pure`. This PR adds two modules in `Tyxml_lwd`: `Pure.Html`,...
do not merge, and regenerate the opam file using dune first. This is just an example I would strongly advise for a stronger CI (testing all available versions from 4.03...
* Add `button'` (happy to rename) for arbitray clickable widgets * `button` handles only `` `Left`` clicks
- put everything in a single module `Nottui` (easily aliasable/openable). I'll refer to it as `UI` from now on. - re-export `Lwd` as `UI.Incremental` and `Lwd_seq` as `UI.Seq` - `UI.Syntax`...
make the widgets into a submodule of `Ui`? seems a bit useless to have `Ui` without a collection of standard widgets imho :slightly_smiling_face:
Here are some things I think would be convenient for a lot of UIs. I can contribute some of them if needed :). I also think that `Nottui_widget` should just...