Hi Kai,
a DimmerItem is not an option since I only want to display the values.
After looking at the code I saw that NumberItem accepts DecimalType, and
PercentType is (from an OOP view) DecimalType. So it schould accept it
also (and of course it works like a charm if you add PercentType to the
accepted types of NumberItem).
It is not accepted now because the decison is only based on the class
name, not on the class hierarchy. I think the logic should respect class
hierarchy, what do you think? Do you see any combinations why this
should not apply?
If you agree I could change the implementation.
Regards,
Felix