Ooui-tws-port/Ooui/Button.cs

34 lines
687 B
C#
Raw Normal View History

2017-06-12 19:09:09 +00:00
using System;
namespace Ooui
{
2017-06-13 07:03:01 +00:00
public class Button : FormControl
2017-06-12 19:09:09 +00:00
{
2017-06-13 07:51:24 +00:00
string typ = "submit";
public string Type {
get => typ;
set => SetProperty (ref typ, value, "type");
}
string val = "";
public string Value {
get => val;
set => SetProperty (ref val, value, "value");
}
2017-06-14 23:48:42 +00:00
2017-06-15 06:10:58 +00:00
public event EventHandler Clicked {
add => AddEventListener ("onclick", value);
remove => RemoveEventListener ("onclick", value);
}
2017-06-14 23:48:42 +00:00
public Button ()
{
}
public Button (string text)
{
Text = text;
}
2017-06-12 19:09:09 +00:00
}
}