2017-06-16 06:35:58 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ooui
|
|
|
|
{
|
|
|
|
public class Form : Element
|
|
|
|
{
|
2017-06-24 23:25:14 +00:00
|
|
|
public string Action {
|
2018-02-02 02:43:23 +00:00
|
|
|
get => GetStringAttribute ("action", "");
|
|
|
|
set => SetAttributeProperty ("action", value ?? "");
|
2017-06-24 23:25:14 +00:00
|
|
|
}
|
|
|
|
|
2017-08-23 03:26:01 +00:00
|
|
|
public string Method {
|
2018-02-02 02:43:23 +00:00
|
|
|
get => GetStringAttribute ("method", "GET");
|
|
|
|
set => SetAttributeProperty ("method", value ?? "");
|
2017-08-23 03:26:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public string EncodingType {
|
2018-02-02 02:43:23 +00:00
|
|
|
get => GetStringAttribute ("enctype", "application/x-www-form-urlencoded");
|
|
|
|
set => SetAttributeProperty ("enctype", value ?? "");
|
2017-08-23 03:26:01 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 23:07:33 +00:00
|
|
|
public event TargetEventHandler Submit {
|
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")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|