예제 #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;
 }
예제 #2
0
 public virtual Element ReplaceWith(Element element)
 {
     this.Call("replaceWith", new JRawValue(element.Descriptor));
     return this;
 }
예제 #3
0
 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()));
 }
예제 #4
0
 /// <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)));
 }
예제 #5
0
 public void InsertFirst(Element target, object data)
 {
     this.Call("insertFirst", new JRawValue(target.Descriptor), data);
 }
예제 #6
0
 public Dom(Element element)
 {
     this.element = element;            
 }
예제 #7
0
 public virtual Element Center(Element centerIn)
 {
     this.Call("center", new JRawValue(centerIn.Descriptor));
     return this;
 }
예제 #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;
        }
예제 #9
0
 public virtual Element AnchorTo(Element element, string position)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position);
     return this;
 }
예제 #10
0
 public virtual Element AppendTo(Element element)
 {
     this.Call("appendTo", new JRawValue(element.Descriptor));
     return this;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #14
0
 public virtual Element ScrollIntoView(Element container)
 {
     this.Call("scrollIntoView", new JRawValue(container.Descriptor));
     return this;
 }
예제 #15
0
 public virtual Element CreateChild(DomObject config, Element insertBefore)
 {
     this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom"));
     return this;
 }
예제 #16
0
 public virtual Element Up(string selector, Element maxDepth)
 {
     this.EnsureChaining();
     this.Call("up", selector, new JRawValue(maxDepth.Descriptor));
     return this;
 }
예제 #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;
 }
예제 #18
0
 public void Append(Element target, object data)
 {
     this.Call("append", new JRawValue(target.Descriptor), data);
 }
예제 #19
0
 public virtual Element CreateProxy(string className, Element renderTo, bool matchBox)
 {
     this.Call("createProxy", className, new JRawValue(renderTo.Descriptor + ".dom"), matchBox);
     return this;
 }
예제 #20
0
 public void Overwrite(Element target, object data)
 {
     this.Call("overwrite", new JRawValue(target.Descriptor), data);
 }
예제 #21
0
 public virtual Element FindParentNode(string selector, Element maxDepth)
 {
     this.EnsureChaining();
     this.Call("findParentNode", selector, new JRawValue(maxDepth.Descriptor + ".dom"), true);
     return this;
 }
예제 #22
0
 public virtual void Mon(Element el, string eventName, JFunction fn, string scope)
 {
     this.Call("mon", new JRawValue(el.Descriptor), eventName, fn, new JRawValue(scope));
 }
예제 #23
0
 public virtual Element InsertSibling(Element element, InsertPosition where)
 {
     this.Call("insertSibling", new JRawValue(element.Descriptor), where.ToString().ToLowerCamelCase());
     return this;
 }
예제 #24
0
 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));
 }
예제 #25
0
 public virtual Element InsertSibling(Element element)
 {
     this.Call("insertSibling", new JRawValue(element.Descriptor));
     return this;
 }
예제 #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));
 }
예제 #27
0
 public virtual Element AlignTo(Element element, string position, int[] offsets)
 {
     this.Call("alignTo", new JRawValue(element.Descriptor), position, offsets);
     return this;
 }