Exemple #1
0
 public virtual Element AnchorTo(Element element, string position, int[] offsets, ElementFxConfig animate, bool monitorScroll, JFunction callback)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position, offsets, new JRawValue(new ClientConfig().Serialize(animate, true)), monitorScroll, callback);
     return this;
 }
Exemple #2
0
 public virtual Element ReplaceWith(Element element)
 {
     this.Call("replaceWith", new JRawValue(element.Descriptor));
     return this;
 }
 public virtual void Mon(Element el, string eventName, string fn, string scope, HandlerConfig options)
 {
     this.Call("mon", new JRawValue(el.Descriptor), eventName, fn, new JRawValue(scope), new JRawValue(options.Serialize()));
 }
 /// <summary>
 /// Visually highlights an event using Ext.Fx.highlight config options. If highlightEventActions is false this method will have no effect.
 /// </summary>
 /// <param name="el">The element(s) to highlight</param>
 /// <param name="color">(optional) The highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c')</param>
 /// <param name="o">(optional) Object literal with any of the Ext.Fx config options. See Ext.Fx.highlight for usage examples.</param>
 public void HighlightEvent(Element el, string color, HighlightConfig o)
 {
     this.Call("highlightEvent", new JRawValue(el.Descriptor), color, new JRawValue(new ClientConfig().Serialize(o)));
 }
Exemple #5
0
 public void InsertFirst(Element target, object data)
 {
     this.Call("insertFirst", new JRawValue(target.Descriptor), data);
 }
Exemple #6
0
 public Dom(Element element)
 {
     this.element = element;            
 }
Exemple #7
0
 public virtual Element Center(Element centerIn)
 {
     this.Call("center", new JRawValue(centerIn.Descriptor));
     return this;
 }
Exemple #8
0
        public virtual Element Add(Element[] elements)
        {
            this.EnsureChaining();

            StringBuilder sb = new StringBuilder();
            sb.Append("[");
            foreach (Element element in elements)
            {
                sb.Append(element.Descriptor).Append(",");
            }
            sb.Remove(sb.Length-1,1).Append("]");

            this.Call("add", new JRawValue(sb.ToString()));
            return this;
        }
Exemple #9
0
 public virtual Element AnchorTo(Element element, string position)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position);
     return this;
 }
Exemple #10
0
 public virtual Element AppendTo(Element element)
 {
     this.Call("appendTo", new JRawValue(element.Descriptor));
     return this;
 }
Exemple #11
0
 public virtual Element AnchorTo(Element element, string position, int[] offsets, ElementFxConfig animate)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position, offsets, new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
Exemple #12
0
 public virtual Element AnchorTo(Element element, string position, int[] offsets, bool animate)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position, offsets, animate);
     return this;
 }
Exemple #13
0
 public virtual Element AnchorTo(Element element, string position, int[] offsets, bool animate, int monitorScroll, JFunction callback)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position, offsets, animate, monitorScroll, callback);
     return this;
 }
Exemple #14
0
 public virtual Element ScrollIntoView(Element container)
 {
     this.Call("scrollIntoView", new JRawValue(container.Descriptor));
     return this;
 }
Exemple #15
0
 public virtual Element CreateChild(DomObject config, Element insertBefore)
 {
     this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom"));
     return this;
 }
Exemple #16
0
 public virtual Element Up(string selector, Element maxDepth)
 {
     this.EnsureChaining();
     this.Call("up", selector, new JRawValue(maxDepth.Descriptor));
     return this;
 }
Exemple #17
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;
 }
Exemple #18
0
 public void Append(Element target, object data)
 {
     this.Call("append", new JRawValue(target.Descriptor), data);
 }
Exemple #19
0
 public virtual Element CreateProxy(string className, Element renderTo, bool matchBox)
 {
     this.Call("createProxy", className, new JRawValue(renderTo.Descriptor + ".dom"), matchBox);
     return this;
 }
Exemple #20
0
 public void Overwrite(Element target, object data)
 {
     this.Call("overwrite", new JRawValue(target.Descriptor), data);
 }
Exemple #21
0
 public virtual Element FindParentNode(string selector, Element maxDepth)
 {
     this.EnsureChaining();
     this.Call("findParentNode", selector, new JRawValue(maxDepth.Descriptor + ".dom"), true);
     return this;
 }
 public virtual void Mon(Element el, string eventName, JFunction fn, string scope)
 {
     this.Call("mon", new JRawValue(el.Descriptor), eventName, fn, new JRawValue(scope));
 }
Exemple #23
0
 public virtual Element InsertSibling(Element element, InsertPosition where)
 {
     this.Call("insertSibling", new JRawValue(element.Descriptor), where.ToString().ToLowerCamelCase());
     return this;
 }
 public virtual void Mun(Element el, string eventName, string fn, string scope)
 {
     this.Call("mun", new JRawValue(el.Descriptor), eventName, new JRawValue(fn), new JRawValue(scope));
 }
Exemple #25
0
 public virtual Element InsertSibling(Element element)
 {
     this.Call("insertSibling", new JRawValue(element.Descriptor));
     return this;
 }
Exemple #26
0
 /// <summary>
 /// Init element of tracker
 /// </summary>
 /// <param name="el">Element</param>
 public void InitElement(Element el)
 {
     this.Call("initEl", new JRawValue(el.Descriptor));
 }
Exemple #27
0
 public virtual Element AlignTo(Element element, string position, int[] offsets)
 {
     this.Call("alignTo", new JRawValue(element.Descriptor), position, offsets);
     return this;
 }