Add convenience ctors to Div
This commit is contained in:
parent
cfdad03e1c
commit
e93d28957c
17
Ooui/Div.cs
17
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<Element> children)
|
||||
: this ()
|
||||
{
|
||||
foreach (var c in children) {
|
||||
AppendChild (c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue