[CLOSED] Notification and close icon

  1. #1

    [CLOSED] Notification and close icon

    Hello
    I tried to experiment a little here, but no success, the problem is that close icon does not appear initially
    (it appears once I click the title of notification)

    <script>
            function showNotification() {
                Ext.net.Notification.show({
                    width: 200,
                    autoHeight: true,
                    hideDelay: 40000,
                    hideFx: {
                        args: ['t', { }],
                        fxName: 'ghost'
                    },
                    
                    showFx: {
                        args: ['t', {}],
                        fxName: 'slideIn'
                    },
                    iconCls: 'icon-information',
                    pinEvent: 'click',
    
                    html: 'test content',
                    title: 'title',
                    autoScroll: true,
                    scope: this
                });
            }
        </script>    
    
    <ext:Button runat="server" Text="Click me">
            <Listeners>
                <Click Handler="showNotification()"></Click>
            </Listeners>
        </ext:Button>
    I spot there is some "class hack" that was used in previous versions, but so far it displays close icon on the left hand side of title.
    Last edited by Daniil; Apr 18, 2013 at 4:02 AM. Reason: [CLOSED]
  2. #2
    Hi @aisi_it_admin,

    The default "autoHide: true" setting hides a close tool.

    For now we can suggest to show a close tool in an afterrender listener.
    if (this.header) {
        this.tools.close.show();
    }
    Last edited by Daniil; Apr 15, 2013 at 5:02 PM.

Similar Threads

  1. [CLOSED] Notification window with "close" button and autoHide=true
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 01, 2015, 11:08 PM
  2. [CLOSED] Overriding the tab close icon click
    By RCM in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 26, 2012, 3:25 PM
  3. Close all the Notification Window.
    By NishaLijo in forum 1.x Help
    Replies: 3
    Last Post: Apr 03, 2012, 8:57 AM
  4. [CLOSED] Ext.net.Notification Icon
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 08, 2011, 10:55 AM
  5. [CLOSED] Notification: hide close button when AutoHide = false
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 16, 2009, 3:10 PM

Posting Permissions