Currently, the elementName field of BaseElement divides set names with ~&~ , which needs to be removed upon display. Adding a displayName field with this already done removes the need to run replaceAll('~&~', ' & ') in every location where the element is displayed, improving code quality. Ideally the displayName field would depend on elementName and respond to updates to it.
Currently, the
elementNamefield ofBaseElementdivides set names with~&~, which needs to be removed upon display. Adding adisplayNamefield with this already done removes the need to runreplaceAll('~&~', ' & ')in every location where the element is displayed, improving code quality. Ideally thedisplayNamefield would depend onelementNameand respond to updates to it.