Jan 21, 2010, 5:56 AM
[CLOSED] [1.0] Notification - AutoHide and CloseVisible
Do you know whether it's possible to allow Notifications to have both the "close" button and auto-hide set?
i.e. I'd like the Notification to close after 10 seconds, but also show the "Close" button if the user wishes to close the notification before that time.
The Close button doesn't become visible unless I disable AutoHide.
Any suggestions welcomed!
Thanks
Dan
i.e. I'd like the Notification to close after 10 seconds, but also show the "Close" button if the user wishes to close the notification before that time.
The Close button doesn't become visible unless I disable AutoHide.
Any suggestions welcomed!
Thanks
Dan
<%@ Page Language="C#" %>
<%@ Import Namespace="Ext.Net.Utilities" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Notification.Show(new NotificationConfig
{
Title = "Example title",
Html = "<p>This is the message</p>",
Icon = Icon.Information,
Height = 150,
AutoHide = true,
CloseVisible = true,
HideDelay = 10000
});
}
</script>
<!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">
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
</form>
</body>
</html>