diff --git a/Ooui/Select.cs b/Ooui/Select.cs new file mode 100644 index 0000000..1cc4318 --- /dev/null +++ b/Ooui/Select.cs @@ -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") + { + } + } +}