Make an instance of a type from the type name in client side code

Suppose you have a type name like Facility:

var myTypeName = 'Facility';
var myTypeInstance = C3UI.type[myTypeName].make();

This will give you an instance of the type in client side code.

1 Like