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... | |
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.
widgetFactory | ( | d | ) |
Create a widget, if possible, or return a widgetLoader.
d | The widget definition used for creation |
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.