Remoto - VFS: widgetFactory Class Reference
Remoto - VFS

A factory and registry for loaded widget definitions. More...

#include "remoto!stdlib:js/widgets/widgetFactory.js"

Public Member Functions

 widgetFactory (d)
 Create a widget, if possible, or return a widgetLoader. More...
 

Detailed Description

A factory and registry for loaded widget definitions.

When an unknown widget is requested from the factory, a loader is returned that will replace itself when the widget is loaded and instantiated.

Constructor & Destructor Documentation

◆ widgetFactory()

widgetFactory (   d)

Create a widget, if possible, or return a widgetLoader.

Parameters
dThe widget definition used for creation
Returns
The newly created widget, or a widgetLoader

Because they are so common, widget, buttonWidget, booleanWidget, and numberWidget, are preloaded.

The special types id, url, email, and phone can be called to create a text widget with a special validator applied.


The documentation for this class was generated from the following file: