package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303

doc/src/bonsai.web_ui_view/form_context.ml.html

Source file form_context.ml

1
2
3
4
5
6
7
8
9
10
11
open! Core
open Bonsai_web_ui_form_view

type t =
  { depth : int
  ; editable : editable
  }
[@@deriving fields]

let default ~editable = { depth = 0; editable }
let incr_depth t = { t with depth = t.depth + 1 }
OCaml

Innovation. Community. Security.