PDA

View Full Version : [CLOSED] Notification and close icon



aisi_it_admin
Apr 15, 2013, 2:34 PM
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.

Daniil
Apr 15, 2013, 3:39 PM
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();
}