コード例 #1
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: XTemplate.cs プロジェクト: pgodwin/Ext.net
 public void InsertFirst(Element target, object data)
 {
     this.Call("insertFirst", new JRawValue(target.Descriptor), data);
 }
コード例 #6
0
ファイル: Dom.cs プロジェクト: hh22333/Ext.NET.Community
 public Dom(Element element)
 {
     this.element = element;            
 }
コード例 #7
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element Center(Element centerIn)
 {
     this.Call("center", new JRawValue(centerIn.Descriptor));
     return this;
 }
コード例 #8
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
        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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element AnchorTo(Element element, string position)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position);
     return this;
 }
コード例 #10
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element AppendTo(Element element)
 {
     this.Call("appendTo", new JRawValue(element.Descriptor));
     return this;
 }
コード例 #11
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element ScrollIntoView(Element container)
 {
     this.Call("scrollIntoView", new JRawValue(container.Descriptor));
     return this;
 }
コード例 #15
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element CreateChild(DomObject config, Element insertBefore)
 {
     this.Call("createChild", new JRawValue(config.Serialize()), new JRawValue(insertBefore.Descriptor + ".dom"));
     return this;
 }
コード例 #16
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element Up(string selector, Element maxDepth)
 {
     this.EnsureChaining();
     this.Call("up", selector, new JRawValue(maxDepth.Descriptor));
     return this;
 }
コード例 #17
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: XTemplate.cs プロジェクト: pgodwin/Ext.net
 public void Append(Element target, object data)
 {
     this.Call("append", new JRawValue(target.Descriptor), data);
 }
コード例 #19
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element CreateProxy(string className, Element renderTo, bool matchBox)
 {
     this.Call("createProxy", className, new JRawValue(renderTo.Descriptor + ".dom"), matchBox);
     return this;
 }
コード例 #20
0
ファイル: XTemplate.cs プロジェクト: pgodwin/Ext.net
 public void Overwrite(Element target, object data)
 {
     this.Call("overwrite", new JRawValue(target.Descriptor), data);
 }
コード例 #21
0
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element InsertSibling(Element element)
 {
     this.Call("insertSibling", new JRawValue(element.Descriptor));
     return this;
 }
コード例 #26
0
ファイル: DragTracker.cs プロジェクト: emayk/Ext.NET.Pro
 /// <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
ファイル: Element.cs プロジェクト: hh22333/Ext.NET.Community
 public virtual Element AlignTo(Element element, string position, int[] offsets)
 {
     this.Call("alignTo", new JRawValue(element.Descriptor), position, offsets);
     return this;
 }