ant-design-blazor/components/form/Internal/IForm.cs
2021-07-18 00:04:11 +08:00

44 lines
997 B
C#

using System;
using AntDesign.Forms;
using Microsoft.AspNetCore.Components.Forms;
namespace AntDesign.Internal
{
public interface IForm
{
internal ColLayoutParam WrapperCol { get; }
internal ColLayoutParam LabelCol { get; }
internal AntLabelAlignType? LabelAlign { get; }
internal EditContext EditContext { get; }
internal FormValidateMode ValidateMode { get; }
internal FormValidateErrorMessages ValidateMessages { get; }
internal string Size { get; }
internal void AddFormItem(IFormItem formItem);
internal void AddControl(IControlValueAccessor valueAccessor);
internal void RemoveControl(IControlValueAccessor valueAccessor);
internal bool ValidateOnChange { get; }
event Action<IForm> OnFinishEvent;
bool IsModified { get; }
string Name { get; }
object Model { get; }
void Reset();
void Submit();
bool Validate();
}
}