public void OnGet() { MyDetailedModel = new DetailedModel { Name = "", Description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", IsActive = true, Age = 65, Day = DateTime.Now, MyCarType = CarType.Coupe, YourCarType = CarType.Sedan, Country = "RU", NeighborCountries = new List <string>() { "UK", "CA" } }; MyFormContentExampleModel = new FormContentExampleModel(); MyOrderExampleModel = new OrderExampleModel(); MyAttributeExamplesModel = new AttributeExamplesModel { DisabledInput = "Disabled Input", ReadonlyInput = "Readonly Input", LargeInput = "Large Input", SmallInput = "Small Input" }; }
public DynamicFormsDemoModel() { MyDetailedModel = new DetailedModel(); MyOrderExampleModel = new OrderExampleModel(); MyAttributeExamplesModel = new AttributeExamplesModel(); MyAttributeExamplesModel.DisabledInput = "Disabled Input"; MyAttributeExamplesModel.ReadonlyInput = "Readonly Input"; MyAttributeExamplesModel.LargeInput = "Large Input"; MyAttributeExamplesModel.SmallInput = "Small Input"; }