/// <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)); }
public TableLayoutConfig(int columns, DomObject tableAttrs, bool renderHidden, string extraCls) : base(renderHidden, extraCls) { this.Columns = columns; this.tableAttrs = tableAttrs; }
/// <summary> /// Creates new DOM element(s) and appends them to el. /// </summary> /// <param name="el">The context element</param> /// <param name="o">The DOM object spec (and children) or raw HTML blob</param> public static Element Append(Element el, DomObject o) { return(DomHelper.Call(false, "append", new JRawValue(el.Descriptor), new JRawValue(new ClientConfig().Serialize(o)), true)); }
/// <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)); }
public virtual Element ReplaceWith(DomObject element) { this.Call("replaceWith", new JRawValue(element.Serialize())); return this; }
public virtual Element Wrap(DomObject config) { this.Call("wrap", new JRawValue(config.Serialize())); return this; }
public virtual Element InsertSibling(DomObject element, InsertPosition where) { this.Call("insertSibling", new JRawValue(element.Serialize()), where.ToString().ToLowerCamelCase()); return this; }
public virtual Element InsertSibling(DomObject element) { this.Call("insertSibling", new JRawValue(element.Serialize())); return this; }
public virtual Element CreateProxy(DomObject config) { this.Call("createProxy", new JRawValue(config.Serialize())); return this; }
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; }
public virtual Element CreateProxy(DomObject config, string renderTo, bool matchBox) { this.Call("createProxy", new JRawValue(config.Serialize()), renderTo, matchBox); return this; }
public virtual Element CreateChild(DomObject config, Element insertBefore) { this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom")); return this; }