Add Select

This commit is contained in:
Frank A. Krueger 2017-06-15 23:41:38 -07:00
parent 786da52936
commit 41790790de
1 changed files with 23 additions and 0 deletions

23
Ooui/Select.cs Normal file
View File

@ -0,0 +1,23 @@
using System;
namespace Ooui
{
public class Select : FormControl
{
string val = "";
public string Value {
get => val;
set => SetProperty (ref val, value ?? "", "value");
}
public event EventHandler Changed {
add => AddEventListener ("change", value);
remove => RemoveEventListener ("change", value);
}
public Select ()
: base ("select")
{
}
}
}