Browse by topic

Discover Cotonic

Explore related documentation through its most useful keyword groups.

34 items

Grouped by Domain

All Cotonic

Cotonic

Change log Cotonic

Change Log 1.9.0 — Sep 1, 2026 — Diff — Docs — Download

Cotonic

Cotonic Cotonic

COTONIC Cotonic is a Javascript library which makes it possible to split the javascript code of your page…

Cotonic

cotonic.broker Cotonic

Broker The broker module handles all local publish subscribe connections. The subscriptions are stored in a trie…

Cotonic

cotonic.mqtt Cotonic

MQTT The mqtt module provides functions to work with mqtt topics. The broker uses this module as the basis to provide its…

Cotonic

cotonic.mqtt_bridge Cotonic

mqtt_bridge This module makes it possible to bridge the broker on the local page to an external MQTT broker.

Cotonic

cotonic.tokenizer Cotonic

tokenizer The tokenizer transforms text to html tokens. The tokenizer is used by the user interface composer in order to…

Cotonic

cotonic.ui Cotonic

ui The user interface composer manages html snippets which can be placed in the DOM tree. When an updated html snippet is…

Cotonic

Links Cotonic

Links Introduction to Incremental DOM

Cotonic models

model/activity Cotonic

model/activity Publishes browser activity observed by Zotonic's wires script. This is an event-only model: it has no get , post , or delete operations and no…

Cotonic models

model/alert Cotonic

model/alert Displays a Zotonic alert dialog through the wires script and z_dialog_alert . The page must have the normal Zotonic dialog support loaded.

Cotonic models

model/auth Cotonic

model/auth Owns browser authentication state and communicates with /zotonic-auth . It checks and refreshes authentication, manages login/logout and password…

Cotonic models

model/auth-ui Cotonic

model/auth-ui Manages Zotonic's login, reminder, verification, reset, and password-change views. The standard _logon.tpl starts the worker and supplies the…

Cotonic models

model/autofocus Cotonic

model/autofocus The autofocus model looks for elements with the autofocus attribute which are just added to the dom tree.

Cotonic models

model/clipboard Cotonic

model/clipboard Copies text using the browser Clipboard API. Implemented in the wires script. Browser clipboard availability and permission rules still apply.

Cotonic models

model/console Cotonic

model/console Writes structured messages to the browser console and answers diagnostic pings. Implemented in the wires script.

Cotonic models

model/dedup Cotonic

model.dedup The dedup model implements message deduplication. It works by sending a message to the dedup model, the dedup model then…

Cotonic models

model/document Cotonic

model/document The document model can be used to retrieve details about the current document.

Cotonic models

model/fileuploader Cotonic

model/fileuploader Queues browser files and uploads them in chunks through mod_fileuploader . The _fileuploader_worker.tpl include starts the worker. It…

Cotonic models

model/lifecycle Cotonic

model/lifecycle Application lifecycle is a key way that modern operating systems manage resources. On Android, iOS, and…

Cotonic models

model/loadmore Cotonic

model/loadmore Replaces a loader element with a server-rendered template. Include js/models/loadmore.js from mod_base on pages that use this model.

Cotonic models

model/localStorage Cotonic

model/localStorage get/+key Gets item key from localStorage. Returns the content as payload.

Cotonic models

model/location Cotonic

model/location The location model can be used to retrieve information on the current location of the page. It also allows…

Cotonic models

model/oauth Cotonic

model/oauth Coordinates an OAuth authorization or redirect page. The worker is provided by mod_oauth2 and advertises model/oauth as a dependency capability. It…

Cotonic

Models Cotonic

Models Because workers run as independent components it is not possible to directly call api's. Some api's are also not…

Cotonic models

model/serviceWorker Cotonic

model/serviceWorker The serviceWorker model makes it possible to communicate with other tabs from the same site. This…

Cotonic models

model/sessionId Cotonic

model/sessionId The sessionId model manages a browser identifier stored as JSON under cotonic-sid in localStorage. It is…

Cotonic models

model/sessionStorage Cotonic

model.sessionStorage The sessionStorage model provides access to the sessionStorage of the browser. It makes it possible…

Cotonic models

model/ui Cotonic

model/ui The ui model can be used to update the dom by publishing messages on one of the model/ui/# topics. Elements can…

Cotonic models

model/window Cotonic

model/window The window model can be used open and close windows.

Cotonic models

model/wires Cotonic

model/wires Connects Cotonic messages to named Zotonic events through the wires script.

Cotonic

Page functions Cotonic

Page Functions Cotonics main functions are available in the cotonic namespace on the main page. The functions are mostly…

Cotonic

Worker functions Cotonic

Worker Functions Workers are stand alone processes. They have no shared data with the page, nor with other workers. Their…

Cotonic

Workers Cotonic

Workers Cotonic uses Web Workers which all run in separate calling context. This means that they will not block the main…

Cotonic

Zotonic Cotonic models Cotonic

Zotonic Cotonic models These browser-side models extend Cotonic with Zotonic functionality. Each model has its own reference page: