sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Reusable UI components for Eliom applications (client only, or client-server)
Install
dune-project
Dependency
Authors
Maintainers
Sources
5.0.0.tar.gz
md5=94767ed327f1b17bdf81bb6eae92d8da
sha512=86e2522ed7f9f1aba2da9f2dec7bb764aa1357fe48d560da5565d8e77d8307ba14f9637a1025c010acf9c77c8e8bfd59c0672be7d9da59ea4520ebac24ea2314
doc/ocsigen-toolkit.server/Ot/Drawer/index.html
Module Ot.Drawer
Drawer menu for mobile and Web applications
val drawer :
?a:[< Html_types.div_attrib ] Eliom.Content.Html.attrib list ->
?position:[ `Top | `Right | `Bottom | `Left ] ->
?opened:bool ->
?swipe:bool ->
?onclose:(unit -> unit) Eliom.Client_value.t ->
?onopen:(unit -> unit) Eliom.Client_value.t ->
?wrap_close:
((unit -> unit) Eliom.Client_value.t ->
(unit -> unit) Eliom.Client_value.t) ->
?wrap_open:
((unit -> unit) Eliom.Client_value.t ->
(unit -> unit) Eliom.Client_value.t) ->
[< Html_types.div_content ] Eliom.Content.Html.elt list ->
[> `Div ] Eliom.Content.Html.elt
* (unit -> unit) Eliom.Client_value.t
* (unit -> unit) Eliom.Client_value.tBuild a drawer menu on the left, right, top or bottom of the screen. Returns the DOM element, and functions to open and close the menu. It is also possible to open or close the menu by clicking on a button, and to swipe the menu to close it.
If opened is true (false by default), the drawer is initialized in its opened state.
If swipe is true (default), the user can swipe to open or close the drawer.
If present, function onclose is called just after the drawer is closed, and function onopen just before it starts opening.
wrap_close and wrap_open can be used to customize calls to close and open_ functions when the drawer closing or opening is triggered. For example, drawer closing can be disabled using wrap_close.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page