I want to create custom Threshold for bar gauge (react plugin). I want to add custom editor for field and replace with existing Threshold for bar gauge.
Example:
.addCustomEditor({
id: ‘threshold’,
path: ‘threshold’,
name: ‘Thresholds’,
editor: () => //Not able to set CustomThresholdEditor
override: () =>,//Not able to set ThresholdEditor (Referring default)
isCustom:true,
process: identityOverrideProcessor,
shouldApply: () => true,
defaultValue: { value: ‘Custom default value’ },
});
I am not able to set override and editor. I have no idea i am in right direction or not.