Add TextArea

This commit is contained in:
Frank A. Krueger 2017-06-15 23:15:26 -07:00
parent 3400c4bc4d
commit 5a20182f5d
1 changed files with 35 additions and 0 deletions

35
Ooui/TextArea.cs Normal file
View File

@ -0,0 +1,35 @@
using System;
namespace Ooui
{
public class TextArea : Element
{
public event EventHandler Changed {
add => AddEventListener ("change", value);
remove => RemoveEventListener ("change", value);
}
string text = "";
public override string Text {
get => text;
set => SetProperty (ref text, value, "value");
}
int rows = 2;
public int Rows {
get => rows;
set => SetProperty (ref rows, value, "rows");
}
int cols = 2;
public int Columns {
get => cols;
set => SetProperty (ref cols, value, "cols");
}
public TextArea ()
: base ("textarea")
{
}
}
}