diff --git a/Ooui/Div.cs b/Ooui/Div.cs index 02012c5..d4d8009 100644 --- a/Ooui/Div.cs +++ b/Ooui/Div.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; namespace Ooui { @@ -8,5 +9,21 @@ namespace Ooui : base ("div") { } + + public Div (params Element[] children) + : this () + { + foreach (var c in children) { + AppendChild (c); + } + } + + public Div (IEnumerable children) + : this () + { + foreach (var c in children) { + AppendChild (c); + } + } } }