Closed simonetassi closed 9 months ago
I was't customizing the preset setup correctly. This is how it should be done:
...
angularRender.addPreset(
AngularPresets.classic.setup({
customize: {
control(data) {
if (data.payload instanceof CustomDropdownControl) {
return CustomDropdownComponent;
}
return ControlComponent;
}
},
})
);
...
For a more complete example you can look at the https://retejs.org/examples/controls/angular example.
I think this issue can be considered closed!
I am trying to add a DropDownInputControl to one of my nodes but it doesn't load and the node is shown without any input. This is my code:
If instead of CustomDropDownControl I add a simple InputControl in my button, it is shown properly.
Any help is appreciated! Thanks!