package quill
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=93abc49d075a1754442ccf495645bc4fdc83e4c66391ec8aca8fa15d2b4f44d2
sha512=5eb958c51f30ae46abded4c96f48d1825f79c7ce03f975f9a6237cdfed0d62c0b4a0774296694def391573d849d1f869919c49008acffca95946b818ad325f6f
doc/quill.browser/Quill_browser/Brr_ext/Document/index.html
Module Brr_ext.DocumentSource
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.