Ooui-tws-port/Ooui/Form.cs

41 lines
964 B
C#
Raw Normal View History

2017-06-16 06:35:58 +00:00
using System;
namespace Ooui
{
public class Form : Element
{
2017-06-24 23:25:14 +00:00
string action = "";
public string Action {
get => action;
set => SetProperty (ref action, value ?? "", "action");
}
2017-08-23 03:26:01 +00:00
string method = "GET";
public string Method {
get => method;
set => SetProperty (ref method, value ?? "", "method");
}
string enctype = "application/x-www-form-urlencoded";
public string EncodingType {
get => enctype;
set => SetProperty (ref enctype, value ?? "", "enctype");
}
public event TargetEventHandler Submitted {
2017-06-16 06:35:58 +00:00
add => AddEventListener ("submit", value);
remove => RemoveEventListener ("submit", value);
}
2017-07-08 05:55:04 +00:00
public event TargetEventHandler Reset {
2017-06-16 06:40:18 +00:00
add => AddEventListener ("reset", value);
remove => RemoveEventListener ("reset", value);
}
2017-06-16 06:35:58 +00:00
public Form ()
: base ("form")
{
}
}
}