Exemplo n.º 1
0
 /// <summary>
 /// 初始化输入控件生成器
 /// </summary>
 private void InitInputBuilder(FormFieldBuilder formFieldBuilder, InputBuilder inputBuilder)
 {
     inputBuilder.SetText();
     inputBuilder.AddOtherAttributes(_config);
     inputBuilder.Id(_config);
     inputBuilder.AddAttribute(UiConst.Name, _config.GetValue(UiConst.Name));
     inputBuilder.AddAttribute("placeholder", _config.GetValue(UiConst.Placeholder));
     inputBuilder.AddAttribute("type", _config.Type);
     inputBuilder.AddAttribute("[(ngModel)]", _config.GetValue(UiConst.Model));
     AddValidations(formFieldBuilder, inputBuilder);
 }