예제 #1
0
 /// <summary>
 /// Creates new DOM element(s) and overwrites the contents of el with them.
 /// </summary>
 /// <param name="el">The context element</param>
 /// <param name="o">The DOM object spec (and children)</param>
 public static Element Overwrite(Element el, DomObject o)
 {
     return(DomHelper.Call(false, "overwrite", new JRawValue(el.Descriptor), new JRawValue(o.Serialize()), true));
 }
예제 #2
0
 public virtual Element Wrap(DomObject config)
 {
     this.Call("wrap", new JRawValue(config.Serialize()));
     return this;
 }
예제 #3
0
 /// <summary>
 /// Creates new DOM element(s) and inserts them as the first child of el.
 /// </summary>
 /// <param name="el">The context element</param>
 /// <param name="o">The DOM object spec (and children)</param>
 public static Element InsertFirst(Element el, DomObject o)
 {
     return(DomHelper.Call(false, "insertFirst", new JRawValue(el.Descriptor), new JRawValue(o.Serialize()), true));
 }
예제 #4
0
 public virtual Element InsertSibling(DomObject element)
 {
     this.Call("insertSibling", new JRawValue(element.Serialize()));
     return this;
 }
예제 #5
0
 public virtual Element ReplaceWith(DomObject element)
 {
     this.Call("replaceWith", new JRawValue(element.Serialize()));
     return this;
 }
예제 #6
0
 public virtual Element InsertSibling(DomObject element, InsertPosition where)
 {
     this.Call("insertSibling", new JRawValue(element.Serialize()), where.ToString().ToLowerCamelCase());
     return this;
 }
예제 #7
0
 public virtual Element CreateProxy(DomObject config)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()));
     return this;
 }
예제 #8
0
 public virtual Element CreateProxy(DomObject config, Element renderTo, bool matchBox)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()), new JRawValue(renderTo.Descriptor+".dom"), matchBox);
     return this;
 }
예제 #9
0
 public virtual Element CreateProxy(DomObject config, string renderTo, bool matchBox)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()), renderTo, matchBox);
     return this;
 }
예제 #10
0
 public virtual Element CreateChild(DomObject config, Element insertBefore)
 {
     this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom"));
     return this;
 }