package ojs_filetree
Using filetrees in ojs_base applications, common part
Install
Dune Dependency
Authors
Maintainers
Sources
ojs-base-0.8.0.tar.bz2
md5=e706f1f9ec2f935d29c6b6e4832c8bdf
sha512=2596f6c59bea9c6b89923099c604a0e095a96880e7e91b06357e1de50867ae7e0261c87c35f608b7e426bddd6dd025a9868c07499287116ed458de4a0b9e9f30
doc/ojs_filetree.js/Ojsft_js/Make/class-tree/index.html
Class Make.tree
Source
val mutable filetree : tree_node list
val mutable on_deselect : 'a -> Ojs_filetree.Types.path -> unit
val mutable on_select : 'a ->
[ `Dir | `File of Ojs_filetree.Types.mime_type ] ->
Ojs_filetree.Types.path ->
unit
val mutable selected : (Ojs_js.id * Ojs_filetree.Types.path) option
method add_dir : Ojs_filetree.Types.path -> string -> unit Lwt.t
method add_file : [ `Dir | `File ] ->
Ojs_filetree.Types.path ->
Js_of_ocaml.File.file Js_of_ocaml.Js.t ->
unit
method build_from_tree : Ojs_filetree.Types.file_tree list -> unit
method delete : Ojs_filetree.Types.path -> unit Lwt.t
method handle_add_dir : Ojs_filetree.Types.path -> unit
method handle_add_file : Ojs_filetree.Types.path ->
Ojs_filetree.Types.mime_type ->
unit
method handle_delete : Ojs_filetree.Types.path -> unit
method handle_drag_drop : [ `Dir | `File ] ->
Ojs_filetree.Types.path ->
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
unit
method handle_message : P.server_msg -> bool Js_of_ocaml.Js.t
method id : Ojs_js.SMap.key
method insert_dir : Ojs_filetree.Types.path -> unit
method insert_file : Ojs_filetree.Types.path ->
Ojs_filetree.Types.mime_type ->
unit
method insert_tn : Ojs_js.id ->
tree_node ->
Js_of_ocaml.Dom.node Js_of_ocaml.Js.t ->
tree_node list ->
tree_node list
method on_deselect : 'a -> Ojs_filetree.Types.path -> unit
method on_select : 'a ->
[ `Dir | `File of Ojs_filetree.Types.mime_type ] ->
Ojs_filetree.Types.path ->
unit
method prompt_add_dir : Ojs_filetree.Types.path -> unit Lwt.t
method prompt_delete : Ojs_filetree.Types.path -> unit Lwt.t
method set_on_deselect : ('a -> Ojs_filetree.Types.path -> unit) -> unit
method set_on_select : ('a ->
[ `Dir | `File of Ojs_filetree.Types.mime_type ] ->
Ojs_filetree.Types.path ->
unit) ->
unit
method set_onclick : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
Ojs_js.SMap.key ->
[ `Dir | `File of Ojs_filetree.Types.mime_type ] ->
Ojs_filetree.Types.path ->
unit
method set_selected : Ojs_js.SMap.key ->
[ `Dir | `File of Ojs_filetree.Types.mime_type ] ->
Ojs_filetree.Types.path ->
unit
method set_unselected : Ojs_js.SMap.key -> Ojs_filetree.Types.path -> unit
method simple_call : P.client_msg -> unit Lwt.t
method tree_node_by_path : Ojs_filetree.Types.path -> tree_node
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>