Add convenience ctor to TextArea
This commit is contained in:
parent
09043e80b9
commit
2ee084be62
|
@ -2,7 +2,7 @@ using System;
|
|||
|
||||
namespace Ooui
|
||||
{
|
||||
public class TextArea : Element
|
||||
public class TextArea : FormControl
|
||||
{
|
||||
public event EventHandler Changed {
|
||||
add => AddEventListener ("change", value);
|
||||
|
@ -12,7 +12,7 @@ namespace Ooui
|
|||
string text = "";
|
||||
public override string Text {
|
||||
get => text;
|
||||
set => SetProperty (ref text, value, "value");
|
||||
set => SetProperty (ref text, value ?? "", "value");
|
||||
}
|
||||
|
||||
int rows = 2;
|
||||
|
@ -31,5 +31,11 @@ namespace Ooui
|
|||
: base ("textarea")
|
||||
{
|
||||
}
|
||||
|
||||
public TextArea (string text)
|
||||
: this ()
|
||||
{
|
||||
Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue