renderAsync method
Implementation
@override
Future<dynamic> renderAsync(Map<String, dynamic> properties) async {
await model.load();
var modelType = model.modelType;
if (modelType.isEmpty) return null;
content!.classList.add('$componentClass-$modelType');
if (modelType == 'document') {
return await renderDocument();
} else if (modelType == 'query') {
return await renderQuery();
} else if (modelType == 'catalog') {
return await renderCatalog();
}
}