From 5a20182f5dda80607fdd73e444e3c58cc925bcf9 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Thu, 15 Jun 2017 23:15:26 -0700 Subject: [PATCH] Add TextArea --- Ooui/TextArea.cs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Ooui/TextArea.cs diff --git a/Ooui/TextArea.cs b/Ooui/TextArea.cs new file mode 100644 index 0000000..bf15362 --- /dev/null +++ b/Ooui/TextArea.cs @@ -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") + { + } + } +}