xrm-mock
xrm-mock copied to clipboard
`getAttribute('name').controls` should always contain controls that were added for the attribute
There is at least two ways to create controls in xrm-mock
:
- implicitly by just running
Attribute.createLookup
without passing controls parameter (default control is created); - by explicitly passing
ControlComponent
toAttribute.createLookup
; - by running
Control.createLookup
.
But looks like neither of this functions fill getAttribute('name').controls
array. This list is useful when we want to apply some validation to all controls of the attribute, for example.