package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb
doc/CHANGES.html
Release v0.17.0
- Rewrote entire bonsai API. The new version is inside of the
Bonsai.Contnamespace. new docs here: https://github.com/janestreet/bonsai/tree/master/docs/guide - Added a
duplicatebutton for elements within auto-generated list forms. - Added a function to resize prt colum widths.
- Add
Bonsai.Value.of_optto newBonsai.Contapi. - Migrated bonsai examples to new
Bonsai.ContAPI. - Add documentation about changes and upgrade strategies between proc and cont
Add 3 new APIs to close Bonsai notifications:
close_all_notificationscloses all currently open notificationsclose_oldest_notificationcloses the oldest currently open notificationclose_newest_notificationcloses the newest currently open notification
- Rename
Bonsai.Cont.yoinktoBonsai.Cont.peekto mirror the peek operation in other abstract data types - Made the
close_when_clicked_outsideargument toBonsai_web_ui_popoverdynamic. - Changed Bonsai path generation so that paths are only extended at branch points where multple children might reference the paths.
- Balance long chains of Sub nodes to prevent stack overflows and suboptimal linear chains of incremental model values.
- Added effects to lock and unlock focus in the
Bonsai_web_ui_partial_render_table Bonsai_web_ui_formandBonsai_web_ui_form2were merged intoBonsai_web_ui_formunder submodulesWith_automatic_viewandWith_manual_view, respectively.- Added
always_update_when_focusedto text inputs to make the current behavior (text value can't be updated if the input is focused) optional. Remove the first-class Action module from
Bonsai_extra.state_machine0_dynamic_modelandBonsai_extra.state_machine1_dynamic_modelin favor of an optionalsexp_of_action: 'action -> Sexp.tparameter.
Release v0.16.0
Formatting improvements:
- Remove unnecessary newline in the
Bonsaimodule documentation comment - Remove extra line in Bonsai documentation
- Remove line break in the comment for
Computationtype inBonsai
- Remove unnecessary newline in the
Update function signatures:
- Modify
Bonsai.Value.cutoffto move theequalparameter to the end - Update
Clock.everyto addwhen_to_start_next_effectand optionaltrigger_on_activateparameters - Update
Bonsai.wrap,actor0, andactor1functions to include optionalresetparameter - Update
Bonsai.Edge.on_change,effect_on_change, andon_change'functions to removeSource_code_position.tparameter - Update
Let_syntax.subfunction inBonsaito accepthereparameter - Update
Let_syntax.mapfunction inBonsaito accept an optionalhereparameter - Modify
Bonsai.Debug.to_dotfunction signature to accept an optionalpre_processparameter
- Modify
Add new functions:
Bonsai.fold_rightBonsai.For_openBonsai.Var.incr_varBonsai.Computation_statusBonsai.state,state_opt,state_machine1, and related functionsBonsai.toggle,Togglemodule, andtoggle'functionBonsai.of_module0,of_module1, andof_module2Bonsai.freezeBonsai.scope_modelBonsai.most_recent_some,most_recent_value_satisfying, andprevious_valueBonsai.assoc_setandassoc_listBonsai.with_model_resetter'Bonsai.yoinkBonsai.subBonsai.cutoff,switch, andmapfunctions inLet_syntaxBonsai.Debug.on_changeandon_change_print_sBonsai.Expert,Map, andStablemodules
- Remove
model_cutofffunction
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page