mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
78abff551d
* feat(module: form): add form-context demo, support FormProvider * refactor: remove debug code Co-authored-by: James Yeung <shunjiey@hotmail.com>
34 lines
689 B
C#
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();
|
|
}
|
|
}
|