init method
dynamic
init(
- ComponentConstructor policyPresentationComponentConstructorDefault,
- ComponentEditorConstructor policyPresentationComponentEditorConstructor
Implementation
init(
ComponentConstructor policyPresentationComponentConstructorDefault,
ComponentEditorConstructor policyPresentationComponentEditorConstructor,
) {
Apis.apis().getRegistryApi().addInternalComponents('eliud_pkg_etc_model', [
"policyPresentations",
]);
Apis.apis().getRegistryApi().addDropDownSupporter(
"policyPresentations", DropdownButtonComponentFactory());
Apis.apis().getRegistryApi().register(
componentName: "policyPresentations",
componentConstructor: policyPresentationComponentConstructorDefault);
Apis.apis()
.getRegistryApi()
.addComponentSpec('eliud_pkg_etc_model', 'etc', [
ComponentSpec(
'policyPresentations',
policyPresentationComponentConstructorDefault,
PolicyPresentationComponentSelector(),
policyPresentationComponentEditorConstructor,
({String? appId}) => policyPresentationRepository(appId: appId)!),
]);
Apis.apis().getRegistryApi().registerRetrieveRepository(
'eliud_pkg_etc_model',
'policyPresentations',
({String? appId}) => policyPresentationRepository(appId: appId)!);
}