I'm trying to get the shema title for the component using next javascript code:
var component = $models.getItem(id);
component.getSchema().getTitle()
component.getSchema().getInfo().Title;
the result of getSchema().getTitle() and getSchema().getInfo().Title is 'undefined'. What's wrong with my code? How can I get the component schema title?