[CLOSED] Custom Animate Target

  1. #1

    [CLOSED] Custom Animate Target

    Hey,
    I wanted to know how to set a custom animate target. I would like to set the animatetarget to the XY values that I set. Is that possible?

    Thanks,

  2. #2

    RE: [CLOSED] Custom Animate Target

    Hi,

    I am not sure that clear understood your phrase: "to set the animatetarget to the XY values"

    AnimateTarget : String/Element<div class="mdesc" style="margin: 0px; padding: 5px 0px; color: rgb(68, 68, 68);">Id or element from which the window should animate while opening (defaults to null with no animation).

    Please see the following sample (may be it is better to update from SVN first)
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
        
        <script runat="server">
            protected void Button1Click(object sender, DirectEventArgs e)
            {
                Window1.Show(Button1);
            }
    
            protected void Button3Click(object sender, DirectEventArgs e)
            {
                Window1.Show("divAnimTarget");
            }
        </script>
    </head>
    <body>    
            <form id="form1" runat="server">
                <ext:ResourceManager runat="server" />
                
                <ext:Button ID="Button1" runat="server" Text="Show Window (control - server side)">
                    <DirectEvents>
                        <Click OnEvent="Button1Click" />
                    </DirectEvents>
                </ext:Button>
                
                <ext:Button ID="Button2" runat="server" Text="Show Window (control - client side)">
                    <Listeners>
                        <Click Handler="#{Window1}.show(this.el);" />
                    </Listeners>
                </ext:Button>
                
                <ext:Button ID="Button3" runat="server" Text="Show Window (div - server side)">
                    <DirectEvents>
                        <Click OnEvent="Button3Click" />
                    </DirectEvents>
                </ext:Button>
                
                <ext:Button ID="Button4" runat="server" Text="Show Window (div - client side)">
                    <Listeners>
                        <Click Handler="#{Window1}.show('divAnimTarget');" />
                    </Listeners>
                </ext:Button>
                
                <ext:Window ID="Window1" runat="server" Title="Window" Hidden="true" />
                
                <div id="divAnimTarget" style="width:100px;height:100px;background-color:Black;position:absolute;right:0;bottom:0;">
    
            </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Animate Menu
    By PatrikG in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 12, 2012, 7:58 AM
  2. [CLOSED] Is there any way to animate window
    By webppl in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 10, 2010, 6:06 AM
  3. [CLOSED] [1.0] Button's target link
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 29, 2010, 1:19 PM
  4. [CLOSED] [1.0] Multiple DorpTarget on the same target
    By capecod in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 08, 2010, 8:31 AM
  5. [CLOSED] Setting Hyperlink target
    By Dave Ko in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 15, 2010, 12:22 AM

Posting Permissions