package bonsai

  1. Overview
  2. Docs
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/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 ~getters]

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