mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-12-22 16:42:50 +01:00
18 lines
433 B
C#
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;
|
|
}
|
|
}
|