Search
WidgetRegistry.register Method
See Also
 






Registers a new widget type.

Namespace: MindFusion.Dashboards
File: WidgetRegistry.js

 Syntax

JavaScript  Copy Code

function register (id, factory, metadata)

 Parameters

id

String. A unique string identifier for the widget type.

factory

function. A function that returns a new instance of the widget.

metadata

Object. An object containing UI information such as 'displayName' and 'category'.

 See Also