示例#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 TableLayoutConfig(int columns, DomObject tableAttrs, bool renderHidden, string extraCls)
     : base(renderHidden, extraCls)
 {
     this.Columns = columns;
     this.tableAttrs = tableAttrs;
 }
示例#3
0
 /// <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));
 }
示例#4
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));
 }
示例#5
0
 public virtual Element ReplaceWith(DomObject element)
 {
     this.Call("replaceWith", new JRawValue(element.Serialize()));
     return this;
 }
示例#6
0
 public virtual Element Wrap(DomObject config)
 {
     this.Call("wrap", new JRawValue(config.Serialize()));
     return this;
 }
示例#7
0
 public virtual Element InsertSibling(DomObject element, InsertPosition where)
 {
     this.Call("insertSibling", new JRawValue(element.Serialize()), where.ToString().ToLowerCamelCase());
     return this;
 }
示例#8
0
 public virtual Element InsertSibling(DomObject element)
 {
     this.Call("insertSibling", new JRawValue(element.Serialize()));
     return this;
 }
示例#9
0
 public virtual Element CreateProxy(DomObject config)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()));
     return this;
 }
示例#10
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;
 }
示例#11
0
 public virtual Element CreateProxy(DomObject config, string renderTo, bool matchBox)
 {
     this.Call("createProxy", new JRawValue(config.Serialize()), renderTo, matchBox);
     return this;
 }
示例#12
0
 public virtual Element CreateChild(DomObject config, Element insertBefore)
 {
     this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom"));
     return this;
 }
示例#13
0
 public TableLayoutConfig(int columns, DomObject tableAttrs, bool renderHidden, string extraCls)
     : base(renderHidden, extraCls)
 {
     this.Columns    = columns;
     this.tableAttrs = tableAttrs;
 }