Match Value properties to HTML

This commit is contained in:
Frank A. Krueger 2017-06-15 23:56:30 -07:00
parent 37011081e9
commit ea3d5cdd97
2 changed files with 4 additions and 10 deletions

View File

@ -4,12 +4,6 @@ namespace Ooui
{
public class Button : FormControl
{
string val = "";
public string Value {
get => val;
set => SetProperty (ref val, value, "value");
}
public event EventHandler Clicked {
add => AddEventListener ("click", value);
remove => RemoveEventListener ("click", value);

View File

@ -9,10 +9,10 @@ namespace Ooui
remove => RemoveEventListener ("change", value);
}
string text = "";
public override string Text {
get => text;
set => SetProperty (ref text, value ?? "", "value");
string val = "";
public string Value {
get => val;
set => SetProperty (ref val, value ?? "", "value");
}
int rows = 2;