1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-11-23 19:42:51 +01: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;
}
}