jComponent V19 19.194
The previous jComponent library for the browser. Use this documentation to maintain applications built with jComponent 19.
Getting started
-
Introduction
What jComponent is, the ideas it is built on and what the library file contains.
-
Getting started
Build a working page with bound data and a custom component, starting from an empty HTML file.
-
Global functions
The functions and objects that jComponent adds to the window object.
-
DEF
The configuration options of the library.
Core concepts
-
Paths
How paths address values in the data model, how to read and write them, and who is notified of a change.
-
Flags and path modifiers
Change how a read or write behaves by adding flags and modifiers to a path.
-
Data binding
Connect HTML elements to paths with ui-bind and data-bind, without writing JavaScript.
-
Scopes
Give a part of the page its own base path, so the same markup can work with different data.
-
Virtual bindings
Render detached HTML and repeated rows from a private model, outside the global data.
-
MAIN
The main object of the library and its names.
-
M
The members of the main object of the library.
-
PREF
User preferences stored in the browser.
-
Events
The events that the library emits.
-
ui-bind
The attributes and commands of the ui-bind element, and the binder object it creates.
-
Scope
The properties and methods of a scope object.
-
Virtual binder
The properties and methods of the objects created by VBIND() and VBINDARRAY().
Components
-
Using components
Place components on a page, configure them, and find and control them from code.
-
Creating components
Declare your own components, handle their lifecycle, and exchange data with the model.
-
Macros
Attach small reusable behaviour to a ui-bind element with MACRO().
-
ui-component
The attributes, configuration keys, methods and CSS classes of the ui-component element.
-
Component
The delegates, properties and methods of a component instance.
-
Macro
The delegates, properties and methods of a macro instance.
Applications
-
Plugins
Organise the logic and data of a part of the application with PLUGIN() and ui-plugin.
-
Importing content
Load HTML, scripts and stylesheets on demand with IMPORT() and the ui-import element.
-
Templates with Tangular
Render HTML from data with the Tangular template engine that ships with jComponent.
-
Routing
Map URL addresses to functions with ROUTE(), navigate with REDIRECT() and read the current state from NAV.
Reference 43 -
Forms and validation
Validate values in components, track what the user changed and control the state of a whole form.
-
Localization
Translate texts and adapt dates, numbers, currencies and plurals to the language of the user.
-
ui-plugin
The attributes and configuration keys of the ui-plugin element.
-
Plugin
The properties, delegates and methods of a plugin instance.
-
ui-import
The attributes and configuration keys of the ui-import element.
-
Tangular helpers
The helpers available in Tangular templates for encoding, formatting and reading code lists.
Utilities
-
String
Methods that jComponent adds to String.prototype for formatting, parsing, validating and converting text.
-
Number
Methods that jComponent adds to Number.prototype for calculating, rounding and formatting numbers.
-
Array
Methods that jComponent adds to Array.prototype for finding, sorting, grouping and processing items.
-
Date
Methods that jComponent adds to Date.prototype for formatting dates and calculating with them.
-
jQuery extensions
Methods that jComponent adds to jQuery for working with classes, attributes, SVG, components and scopes.
FAQ
-
FAQ
Answers to the questions developers ask most often when they start with jComponent.