LZX Reference Manual

The LZX Reference defines the behavior of all XML tags and JavaScript APIs in the LZX language. See the bottom of this page for links to other documentation and sources of information about building and deploying OpenLaszlo applications.

By default, most of the examples in this reference are "live" and editable. The best way to learn to use these classes is to play with them. Simply click on the "edit" button to see how this works.

Here is a brief summary of the categories of classes as they appear on the navigation panel on the left.

Structure

These elements structure the code within an application, allowing you to break it into multiple files or to define custom elements.

View Basics

These are the elements that place a view on the canvas. A view controls the presentation of media and data, and responds to user events.

Components

These are user-interface components in the OpenLaszlo components library. These tags can be used to build to web applications. See the Components Hierarchy for an interactive guide to these classes.

An application can include the entire set of OpenLaszlo components by including the line <include href="lz"/>. An application can include individual OpenLaszlo components by including just the files that define those components.

Layouts

These elements determine the position of views within a parent view.

Animation

These elements change the values of another element's attributes over time.

Events

These classes allow you to control the processing of user events, and to post application events.

HTML Markup

This secion contains tags that mark up HTML text. These tags may be used within a text element, tags that extend this tag, and tags whose definition includes a definition for <attribute name="text" type="html"/>. (See the documentation on Text Classes for more information about this last category.)

Media

These are elements that import media objects into an application and control their use.

Data

The data elements and classes are for requesting data from a server and binding it to views.

Scripting

JavaScript APIs.

States

Visual states and behaviors can be attached to and removed from an object over the course of an execution.

Base Classes

Base classes are designed to be extended. The classes in the Components section extend these.

Menus and Commands

These elements are for creating menus and menu bars, and processing commands.

Persistent Connection

A source for datasets that are shared across multiple clients.

Development

Elements and APIs that are used during development, for debugging and testing.

Other Sources of Information