classvdom::VElem
sys::Obj vdom::VElem
@Js
VElem models a virtual Elem instance.
- add
@Operator
This add(VElem child)Add a new element as a child to this element. Return this.
- attrs
Attributes for this element.
- children
VElem[] children := VElem[,]Child nodes for this element.
- events
Str:Func events := [Str:Func][:]Event handlers for this element.
- make
new make(Str tag)Create a new VElem instance.
- onEvent
Void onEvent(Str name, Bool useCapture, |Event func)Convenience for events.
- tag
const Str tagTag name of this element.
- text
Str? text := nullText content contained in this element.
- trap
virtual override Obj? trap(Str name, Obj?[]? args := null)Convenience for attrs get and set.