Skip to content

Is there any option to dynamically create instance of class? #17766

@asstet

Description

@asstet

Hey, there's the question – could I create class instance if I have string variable which contains its name?
For example, i have
var className = 'DocumentsList';,
could I do something like this
var docListWidget = createInstance(className[, params]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions