ant-design-blazor/components/form/Internal/IForm.cs
unsung189 b68e70fd76 feat(module: form): Form lable supports left alignment (#1292)
* feat: Form lable supports left alignment

* Update and rename components/grid/Col.razor.cs to 组件/格网/Col.razor.cs

* Delete Col.razor.cs

* no message

* PR:1292

* typo LabelAlign

* add the property in Col instead FormItem

* clean code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-02 23:13:44 +08:00

39 lines
796 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 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();
}
}