Login  |  YouWhat?  |  About Us  |  Blog  |  Forum  |  Develop  |  FAQ  |  Tutorial  |  Policy  |  Contact Us

YouOS Javascript APIs

When developing apps within YouOS, you have a wide variety of methods and APIs you can call. Here is the growing list.

Notes:

  • All YouOS javascript methods are in the namespace "uos", and there are numerous sub-namespaces, e.g. "uos.data", "uos.ui", etc.
  • Many methods take an optional "options" object that can modify the behavior of the method
  • Many methods take callback functions as parameters - functions that are called with specific parameters when the API completes.
  • Some API packages are automatically included in YouOS, while others must be loaded by apps via the app_deps property.

Contents:

  • uos.api: Generic API utility packages, as well as many APIs themselves (online file system, etc.)
  • uos.control: Contains MVC controller objects.
  • uos.crosstalk: Packages that connect components within same application process
  • uos.data: Packages to manipulate server-side data structures.
  • uos.message: For sending event messages to users
  • uos.model: Contains MVC model object representing lists, trees, etc.
  • uos.system: Packages for OS methods like open/close apps.
  • uos.ui: Helper packages for manipulating UI widgets and elements.
  • uos.util: Miscellaneous helper packages
  • other: Other packages

uos.api

Generic API utilities, as well as many APIs themselves.

Always available:

  • uos.api - general utilities to call server APIs and handle their results

Must be included as dynamic library:


uos.control

Contains MVC controller objects which bind models to views. All controller methods must be dynamically included. This particular package is subject to revision.


uos.crosstalk

Methods to easily connect components within the same process. All modules must be dynamically included.


uos.data

Manipulate server-side data structures.

Always available:

Must be included as dynamic library:


uos.message

  • uos.message - For sending dojo event based messages to users.

uos.model

Contains MVC model object representing lists, trees, etc. All modules must be dynamically included.


uos.system

OS level APIs like open/close applications and processes.


uos.ui

Manipulate UI widgets and elements.

The following components are loaded when YouOS loads:

The following widget and window-related classes are also loaded when YouOS loads:

The following components are loaded dynamically:

The following dialog classes are loaded dynamically:

The following renderer classes (for views, based on models) are loaded dynamically:


uos.util

Miscellaneous utilities

Always available:

Must be included dynamically:


Other

Always available:

  • uos.assert - programmatic assertion handling
  • uos.browser - find out which browser a user is using
  • uos.constant - a list of javascript constants used throughout YouOS
  • uos.debug - application debugging helper methods
  • uos.lang - a set of javascript language helpers
  • uos.uri - manage URLs to APIs

Must be included as dynamic library:

  • uos.bigint - contains methods to handle very large integers; experimental
Login  |  YouWhat?  |  About Us  |  Blog  |  Forum  |  Develop  |  FAQ  |  Tutorial  |  Policy  |  Contact Us