package quickterface

  1. Overview
  2. Docs
Quick-to-program app interfaces in OCaml for terminal and web

Install

dune-project
 Dependency

Authors

Maintainers

Sources

quickterface-0.1.0.tbz
sha256=8261e3819564fb5d05f1f313e62b73382152591d7a4349ae5b1b08a4fc2469f3
sha512=e739a971bb0e696ab716c168419c59a3d195922d2d1e4963106a845e3442ffa085b05106f36cceeec9b806bf7d6ef2c31e98db04911fbf73c5ac0ce626449d0f

doc/src/quickterface_web_app_backend/class.ml.html

Source file class.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
open! Core
module Js = Js_of_ocaml.Js

type t =
  | Main_container
  | Log_container
  | Log_item
  | Text_prompt_label
  | Input_container_form
  | Input_submit_button
  | Input_multiselect_container
  | Output_math
  | Progress_bar_item
  | Progress_bar_label
  | Progress_bar_bar_container
  | Progress_bar_bar_fill_in_progress
  | Progress_bar_bar_fill_completed
  | Progress_bar_progress_label
[@@deriving to_string, enumerate]

let to_prefixed_string t =
  Printf.sprintf "quickterface__%s" (String.lowercase (to_string t))

let to_js_string t = Js.string (to_prefixed_string t)