package quill
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8e277ed56615d388bc69c4333e43d1acd112b5f2d5d352e2453aef223ff59867
sha512=369eda6df6b84b08f92c8957954d107058fb8d3d8374082e074b56f3a139351b3ae6e3a99f2d4a4a2930dd950fd609593467e502368a13ad6217b571382da28c
doc/quill.editor/Quill_editor/Brr_ext/Document/index.html
Module Brr_ext.Document
Source
include module type of struct include Brr.Document end
The type for Document objects. See G.document
for the global object.
as_target d
is the document as an event target.
Element lookups
find_el_by_id d id
is the element of the document with id
attribute equal to id
(if any).
find_els_by_name d n
is the list of elements of the document with name
attribute equal to n
.
root d
is the document's root element.
body d
is the document's body element.
Warning. Technically this could be null
if your script loads too early. It's a bit inconvenient to have it as an option though so we raise a JavaScript error if that happens; see here on the way to load your script so that it does not.
head d
is the document's head element.
active_el d
is the document's active element, that is the one that has the focus (if any).
Properties
title d
is the document title.
set_title d t
sets the document title.
Visibility state enumeration.
visibility_state d
is the visibility state of d
. Use the Ev.visibilitychange
event to watch for changes.
Pointer locking
pointer_lock_element d
is the element that currently locks the pointer (if any).
exit_pointer_lock d
exits pointer lock mode. The future determines when the corresponding Ev.pointerlockchange
on d
has fired.
Fullscreen
Use El.request_fullscreen
to get into fullscreen mode.
fullscreen_available d
is true
if fullscreen functionality is supported and can be used.
fullscreen_element d
is the element that is being currently presented in fullscreen mode (if any).
exit_fullscreen d
exits fullscreen mode.