예제 #1
0
        private static void PopulateProperties(PropertyFieldUI ui, PropertyField field, DataProvider?dataProvider)
        {
            PopulateProperties(ui, field);

            ui.Property       = field.Property;
            ui.DataCollection = dataProvider?.Collection;
        }
예제 #2
0
 private static void AddAttributes(this RenderTreeBuilder builder, FormEditContext editContext, PropertyFieldUI propertyField, ListType displayType)
 {
     builder.AddAttribute(1, nameof(BaseEditor.Entity), editContext.Entity);
     builder.AddAttribute(2, nameof(BaseEditor.EntityState), editContext.EntityState);
     builder.AddAttribute(3, nameof(BaseEditor.Parent), editContext.Parent);
     builder.AddAttribute(4, nameof(BaseEditor.Property), propertyField.Property);
     builder.AddAttribute(5, nameof(BaseEditor.IsDisabledFunc), propertyField.IsDisabled);
     builder.AddAttribute(6, nameof(BaseEditor.Placeholder), propertyField.Placeholder);
     builder.AddAttribute(6, nameof(BaseEditor.DisplayType), displayType);
 }