1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-17 03:42:50 +02:00
Minecraft-Phantom-Panel/Web/Phantom.Web.Components/Forms/FormModel.cs

18 lines
433 B
C#

using Microsoft.AspNetCore.Components.Forms;
using Phantom.Web.Components.Utils;
namespace Phantom.Web.Components.Forms;
public abstract class FormModel {
public EditContext EditContext { get; }
public FormButtonSubmit.SubmitModel SubmitModel { get; } = new ();
protected FormModel() {
EditContext = BootstrapEditContext.Create(this);
}
protected FormModel(EditContext editContext) {
EditContext = editContext;
}
}