Skip to content

Commit 93f2598

Browse files
committed
Add bootstrap autocomplete library
1 parent 6c5f287 commit 93f2598

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"license": "MIT",
1111
"dependencies": {
1212
"bootstrap": "^5.0.2",
13+
"bootstrap5-autocomplete": "^1.1.14",
1314
"graphviz-react": "^1.2.0",
1415
"monaco-editor": "^0.25.2",
1516
"react": "^17.0.2",

src/bindings/autocompleteBS.mli

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
open Js_of_ocaml
2+
3+
type options
4+
val options : unit -> options
5+
6+
val autocompleteBS :
7+
options ->
8+
(Dom_html.inputElement Js.t -> unit) [@@js.global "autocompleteBS"]

src/bindings/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
(deps monaco.mli)
1010
(action
1111
(run %{bin:gen_js_api} -o %{targets} %{deps})))
12+
13+
(rule
14+
(targets autocompleteBS.ml)
15+
(deps autocompleteBS.mli)
16+
(action
17+
(run %{bin:gen_js_api} -o %{targets} %{deps})))

src/static-requires.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ require('./stylesheet.scss');
66
joo_global_object.monaco = require('monaco-editor/esm/vs/editor/editor.api');
77
require('monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution');
88
require('monaco-editor/esm/vs/editor/contrib/hover/hover');
9+
10+
var autocompleteBS = require("bootstrap5-autocomplete");
11+
joo_global_object.autocompleteBS = autocompleteBS;

src/ui/panel/ParameterView.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
open Lwt
22
open Cohttp
33
open Cohttp_lwt
4+
//open AutocompleteBS
45

56
module Client = Cohttp_lwt_jsoo.Client
67
module ReactDOM = React.Dom

0 commit comments

Comments
 (0)