init method
dynamic
init(
- ComponentConstructor htmlWithPlatformMediumComponentConstructorDefault,
- ComponentEditorConstructor htmlWithPlatformMediumComponentEditorConstructor
Implementation
init(
ComponentConstructor htmlWithPlatformMediumComponentConstructorDefault,
ComponentEditorConstructor htmlWithPlatformMediumComponentEditorConstructor,
) {
Apis.apis().getRegistryApi().addInternalComponents('eliud_pkg_text_model', [
"htmlWithPlatformMediums",
]);
Apis.apis().getRegistryApi().addDropDownSupporter(
"htmlWithPlatformMediums", DropdownButtonComponentFactory());
Apis.apis().getRegistryApi().register(
componentName: "htmlWithPlatformMediums",
componentConstructor:
htmlWithPlatformMediumComponentConstructorDefault);
Apis.apis()
.getRegistryApi()
.addComponentSpec('eliud_pkg_text_model', 'text', [
ComponentSpec(
'htmlWithPlatformMediums',
htmlWithPlatformMediumComponentConstructorDefault,
HtmlWithPlatformMediumComponentSelector(),
htmlWithPlatformMediumComponentEditorConstructor,
({String? appId}) => htmlWithPlatformMediumRepository(appId: appId)!),
]);
Apis.apis().getRegistryApi().registerRetrieveRepository(
'eliud_pkg_text_model',
'htmlWithPlatformMediums',
({String? appId}) => htmlWithPlatformMediumRepository(appId: appId)!);
}