Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public virtual Element Wrap(DomObject config)
 {
     this.Call("wrap", new JRawValue(config.Serialize()));
     return this;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 4
0
 public virtual Element InsertSibling(DomObject element)
 {
     this.Call("insertSibling", new JRawValue(element.Serialize()));
     return this;
 }
Ejemplo n.º 5
0
 public virtual Element ReplaceWith(DomObject element)
 {
     this.Call("replaceWith", new JRawValue(element.Serialize()));
     return this;
 }
Ejemplo n.º 6
0
 public virtual Element InsertSibling(DomObject element, InsertPosition where)
 {
     this.Call("insertSibling", new JRawValue(element.Serialize()), where.ToString().ToLowerCamelCase());
     return this;
 }
Ejemplo n.º 7
0
 public virtual Element CreateProxy(DomObject config)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()));
     return this;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 9
0
 public virtual Element CreateProxy(DomObject config, string renderTo, bool matchBox)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()), renderTo, matchBox);
     return this;
 }
Ejemplo n.º 10
0
 public virtual Element CreateChild(DomObject config, Element insertBefore)
 {
     this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom"));
     return this;
 }