public static void AddNotification(this INotificationModel model, string header, string msg, SpeechBubbleIcon type) { model.Notifications.Add(new Notification() { Header = header, Message = msg, NotificationType = type }); }
/// <summary> /// Creates a Speech Bubble (a Balloon Tooltip) /// </summary> /// <param name="icon">The icon.</param> /// <param name="header">The header.</param> /// <param name="body">The body.</param> public void SpeechBubble(SpeechBubbleIcon icon, string header, string body) { if (Request.QueryString["external"] == null) { ClientScript.RegisterClientScriptBlock(GetType(), Guid.NewGuid().ToString(), "<script>top.umbSpeechBubble('" + icon.ToString() + "', '" + header.Replace("'", "\\'") + "', '" + body.Replace("'", "\\'") + "');</script>"); } }
/// <summary> /// A reference to the umbraco UI component "speechbubble". The speechbubble appears in the lower right corner of the screen, notifying users of events /// </summary> /// <param name="i">The speechbubble icon.</param> /// <param name="header">The speechbubble header.</param> /// <param name="body">The body text</param> public ClientTools ShowSpeechBubble(SpeechBubbleIcon i, string header, string body) { RegisterClientScript(string.Format(Scripts.ShowSpeechBubble, i.ToString(), header.Replace("'", "\\'"), body.Replace("'", "\\'"))); return(this); }
/// <summary> /// Creates a Speech Bubble (a Balloon Tooltip) /// </summary> /// <param name="icon">The icon.</param> /// <param name="header">The header.</param> /// <param name="body">The body.</param> public void SpeechBubble(SpeechBubbleIcon icon, string header, string body) { if (Request.QueryString["external"] == null) ClientScript.RegisterClientScriptBlock(GetType(), Guid.NewGuid().ToString(), "<script>top.umbSpeechBubble('" + icon.ToString() + "', '" + header.Replace("'", "\\'") + "', '" + body.Replace("'", "\\'") + "');</script>"); }
public Notification(string header, string message, SpeechBubbleIcon notificationType) { Header = header; Message = message; NotificationType = notificationType; }
/// <summary> /// A reference to the umbraco UI component "speechbubble". The speechbubble appears in the lower right corner of the screen, notifying users of events /// </summary> /// <param name="i">The speechbubble icon.</param> /// <param name="header">The speechbubble header.</param> /// <param name="body">The body text</param> public ClientTools ShowSpeechBubble(SpeechBubbleIcon i, string header, string body) { RegisterClientScript(string.Format(Scripts.ShowSpeechBubble, i.ToString(), header.Replace("'", "\\'"), body.Replace("'", "\\'"))); return this; }