Match Value properties to HTML
This commit is contained in:
parent
37011081e9
commit
ea3d5cdd97
|
@ -4,12 +4,6 @@ namespace Ooui
|
||||||
{
|
{
|
||||||
public class Button : FormControl
|
public class Button : FormControl
|
||||||
{
|
{
|
||||||
string val = "";
|
|
||||||
public string Value {
|
|
||||||
get => val;
|
|
||||||
set => SetProperty (ref val, value, "value");
|
|
||||||
}
|
|
||||||
|
|
||||||
public event EventHandler Clicked {
|
public event EventHandler Clicked {
|
||||||
add => AddEventListener ("click", value);
|
add => AddEventListener ("click", value);
|
||||||
remove => RemoveEventListener ("click", value);
|
remove => RemoveEventListener ("click", value);
|
||||||
|
|
|
@ -9,10 +9,10 @@ namespace Ooui
|
||||||
remove => RemoveEventListener ("change", value);
|
remove => RemoveEventListener ("change", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
string text = "";
|
string val = "";
|
||||||
public override string Text {
|
public string Value {
|
||||||
get => text;
|
get => val;
|
||||||
set => SetProperty (ref text, value ?? "", "value");
|
set => SetProperty (ref val, value ?? "", "value");
|
||||||
}
|
}
|
||||||
|
|
||||||
int rows = 2;
|
int rows = 2;
|
||||||
|
|
Loading…
Reference in New Issue