Hello,
I’m new to module development. I noticed that when building an Easy Chart off the PMIEasyChart Class, there are no Customizers when you right click on the component. Can someone please show me how you would go about adding a Customizer to the component.
Thank you in advance!
pturmel
February 24, 2021, 9:12pm
2
While not precisely what you're asking, this topic has code I posted that includes a similar action on the Classic Chart:
Hey all, I’m building a component that uses Ignition;s VisionAdvancedTable object. I’m trying to make properties for this component that allow the designer to access the dataset as well as the selectedRow like Ignition’s power table.
I’ve done some digging through the SDK and found the VisionAdvancedTableBeanInfo object but don’t know how to use it.
How would I go about adding these properties, any help is appreciated!
(I didn't want to make my own customizer...)
1 Like
I thought the Customizer was already created by Inductive here and I just need to set it somewhere in the PMIEasyChart.
Never the less, that’s very helpful. Thank you!
In your BeanInfo
, you should pass a CustomizerDescriptor
in the super constructor, and optionally register it as the double click customizer:
public PMIEasyChartBeanInfo() {
super(PMIEasyChart.class, EasyChartCustomizer.VALUE_DESCRIPTOR);
getBeanDescriptor().setValue(DOUBLE_CLICK_CUSTOMIZER_KEY, EasyChartCustomizer.VALUE_NAME);
}
1 Like
pturmel
February 24, 2021, 10:23pm
5
Just like the code I posted in the linked topic. |:
1 Like
Haha sorry, I was a bit overwhelmed with everything going on there! I actually still don’t have it working, but I’m guessing I’m overwriting it somewhere.