class Protoplasm


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:


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:



Class properties