package bonsai

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file underlying_intf.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
open! Core
open! Import

type 'a render =
  eval_context:Form_context.t -> view_context:Form_view.context -> 'a -> Vdom.Node.t list

module C = struct
  class type t = object
    method theme_name : string
    method constants : Constants.t

    method button :
      attrs:Vdom.Attr.t list
      -> disabled:bool
      -> intent:Constants.Intent.t option
      -> tooltip:string option
      -> on_click:unit Effect.t
      -> Vdom.Node.t list
      -> Vdom.Node.t

    method tabs :
      attrs:Vdom.Attr.t list
      -> per_tab_attr:('a -> is_active:bool -> Vdom.Attr.t)
      -> on_change:(from:'a -> to_:'a -> unit Effect.t)
      -> equal:('a -> 'a -> bool)
      -> active:'a
      -> ('a * Vdom.Node.t) list
      -> Vdom.Node.t

    method devbar :
      attrs:Vdom.Attr.t list
      -> count:int
      -> intent:Constants.Intent.t option
      -> string
      -> Vdom.Node.t

    method humanize_sexp : Sexp.t -> string
    method use_intent_fg_or_bg_for_highlighting : [ `Fg | `Bg ]

    method themed_text :
      attrs:Vdom.Attr.t list
      -> intent:Constants.Intent.t option
      -> style:Constants.Font_style.t option
      -> size:Constants.Font_size.t option
      -> string
      -> Vdom.Node.t

    method tooltip :
      container_attr:Vdom.Attr.t
      -> tooltip_attr:Vdom.Attr.t
      -> direction:Tooltip.Direction.t
      -> tipped:Vdom.Node.t
      -> tooltip:Vdom.Node.t
      -> Vdom.Node.t

    method app_attr : Vdom.Attr.t
    method codemirror_theme : For_codemirror.Theme.t option

    (* tables *)
    method table : Vdom.Attr.t
    method table_header : Vdom.Attr.t
    method table_header_row : Vdom.Attr.t
    method table_header_cell : Vdom.Attr.t
    method table_body : Vdom.Attr.t
    method table_body_row : Vdom.Attr.t
    method table_body_cell : Vdom.Attr.t
    method table_body_cell_empty : Vdom.Attr.t

    (* misc forms *)
    method form_view_error : Error.t -> Vdom.Node.t list
    method form_view_error_details : Error.t -> Vdom.Node.t
    method form_view_tooltip : Vdom.Node.t -> Vdom.Node.t

    method form_remove_item :
      eval_context:Form_context.t -> Form_view.remove_item -> index:int -> Vdom.Node.t

    method form_append_item :
      eval_context:Form_context.t -> Form_view.append_item -> Vdom.Node.t

    (* form constructors *)
    method form_empty :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> unit
      -> Vdom.Node.t list

    method form_collapsible :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.collapsible
      -> Vdom.Node.t list

    method form_raw :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.raw
      -> Vdom.Node.t list

    method form_record :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.field list
      -> Vdom.Node.t list

    method form_variant :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.variant
      -> Vdom.Node.t list

    method form_tuple :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.t list
      -> Vdom.Node.t list

    method form_option :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.option_view
      -> Vdom.Node.t list

    method form_list :
      eval_context:Form_context.t
      -> view_context:Form_view.context
      -> Form_view.list_view
      -> Vdom.Node.t list

    method form_view : eval_context:Form_context.t -> Form_view.t -> Vdom.Node.t list
    method form_toplevel_combine : Vdom.Node.t list -> Vdom.Node.t

    (* forms *)
    method form_to_vdom :
      ?on_submit:Form_view.submission_options
      -> eval_context:Form_context.t
      -> Form_view.t
      -> Vdom.Node.t

    (* card component *)
    method card :
      container_attr:Vdom.Attr.t
      -> title_attr:Vdom.Attr.t
      -> content_attr:Vdom.Attr.t
      -> intent:Constants.Intent.t option
      -> on_click:unit Effect.t
      -> title:Vdom.Node.t list
      -> title_kind:Constants.Card_title_kind.t
      -> content:Vdom.Node.t list
      -> Vdom.Node.t
  end
end

module type S = sig
  class c : C.t
end

type t = (module S)
OCaml

Innovation. Community. Security.