ant-design-blazor/components/form/Internal/IForm.cs
笨木头 78abff551d feat(module: form): add form-context demo, support FormProvider (#362)
* feat(module: form): add form-context demo, support FormProvider

* refactor: remove debug code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-16 08:56:15 +08:00

34 lines
689 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);
event Action<IForm> OnFinishEvent;
bool IsModified { get; }
string Name { get; }
object Model { get; }
void Reset();
void Submit();
bool Validate();
}
}