Creating Your Own Control

Many developers may want to create their own, custom Control to perform a very specific interaction. Alternatively, developers may wish to utilize exernal JavaScript libraries like Dojo, Yahoo! YUI, etc. to create their own set of Controls.

Whatever the case may be, QCubed makes it easy to implement custom controls, complete with javascript input and output hooks, within the QControl architecture.

If possible, subclass your custom controls from similar controls in the core that are already created. Or, use controls that others have developed as a model for your own. See the Jqui library of controls for an example of creating JQuery based controls, and the Bootstrap library for an example of Twitter Bootstrap based controls. The Bootstrap library is also a good example of how to create a control that is installable using Composer and that is easily shared with other developers.

Sample Control 28 - Click on me!