class Protoplasm

Description

Protoplasm is the core class for the control framework. On page load, Protoplasm.load is called, which initializes the loading framework and enables the use of Protoplasm.use.

To use a control in a page, add the following code in your <head> section:

Protoplasm.use('datepicker');

Once a control is loaded, the easiest way to use Protoplasm controls is by using Protoplasm.transform to automatically create controls out of all elements that match a CSS selector:

Protoplasm.transform('datepicker', 'input.datepicker');

Since Protoplasm.use returns a Protoplasm.Transformer instance, a common shortcut is using method chaining to creating controls:

Protoplasm.use('datepicker').transform('input.datepicker');

Classes

Class properties