ant-design-blazor/components/form/Internal/IForm.cs
TimChen 75d0d4c569 feat(module: form): add ValidateOnChange parameter (#920)
* feat: autoValidate

* refactor

* fix comments

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-25 12:51:55 +08:00

37 lines
739 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 EditContext EditContext { get; }
internal string Size { get; }
internal void AddFormItem(IFormItem formItem);
internal void AddControl(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();
}
}