29 lines
666 B
C#
29 lines
666 B
C#
using System;
|
|
|
|
namespace Ooui
|
|
{
|
|
public class Form : Element
|
|
{
|
|
string action = "";
|
|
public string Action {
|
|
get => action;
|
|
set => SetProperty (ref action, value ?? "", "action");
|
|
}
|
|
|
|
public event TargetEventHandler Submitted {
|
|
add => AddEventListener ("submit", value);
|
|
remove => RemoveEventListener ("submit", value);
|
|
}
|
|
|
|
public event TargetEventHandler Reset {
|
|
add => AddEventListener ("reset", value);
|
|
remove => RemoveEventListener ("reset", value);
|
|
}
|
|
|
|
public Form ()
|
|
: base ("form")
|
|
{
|
|
}
|
|
}
|
|
}
|