Add Select
This commit is contained in:
parent
786da52936
commit
41790790de
|
@ -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")
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue