1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-11-24 22:42:53 +01:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Web.Components/Forms/FormModel.cs

18 lines
448 B
C#

using Microsoft.AspNetCore.Components.Forms;
using Phantom.Server.Web.Components.Utils;
namespace Phantom.Server.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;
}
}