예제 #1
0
 protected override void OnInitialized()
 {
     InputType  = InputType.OrDefault(GetInputType());
     Id         = string.IsNullOrWhiteSpace(Id) ? Guid.NewGuid().ToString().Substring(0, 10) : Id;
     Name       = string.IsNullOrWhiteSpace(Name) ? Id : Name;
     GroupClass = GroupClass.OrDefault(Class).OrDefault("form-group");
     InputClass = InputClass.OrDefault(Class).OrDefault("form-control");
     LabelClass = LabelClass.OrDefault(Class);
     GroupStyle = GroupStyle.OrDefault(Style);
     InputStyle = InputStyle.OrDefault(Style);
     LabelStyle = LabelStyle.OrDefault(Style);
 }