For populating the ValueHostsManagerConfig and ValidationManagerConfig's ValueHostsConfig property using the guidance of functions. Otherwise you would have to define Config objects carefully following their syntax.
let builder = new ValueHostsManagerConfigBuilder(createValidationServices());builder.input('Field1').requireText();let vm = new ValidationManager(builder); Copy
let builder = new ValueHostsManagerConfigBuilder(createValidationServices());builder.input('Field1').requireText();let vm = new ValidationManager(builder);
instead of
let vmConfig: ValidationManagerConfig = { services: createValidationServices(), valueHostConfigs: [ { valueHostType: ValueHostType.Input, name: 'Field1', validatorConfigs: [ { conditionConfig: { conditionType: ConditionType.RequireText } } ] } ]}let vm = new ValidationManager(vmConfig); Copy
let vmConfig: ValidationManagerConfig = { services: createValidationServices(), valueHostConfigs: [ { valueHostType: ValueHostType.Input, name: 'Field1', validatorConfigs: [ { conditionConfig: { conditionType: ConditionType.RequireText } } ] } ]}let vm = new ValidationManager(vmConfig);
Generated using TypeDoc v0.25.12
For populating the ValueHostsManagerConfig and ValidationManagerConfig's ValueHostsConfig property using the guidance of functions. Otherwise you would have to define Config objects carefully following their syntax.
instead of