mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
44 lines
997 B
C#
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();
|
|
}
|
|
}
|