Table of Contents

Class Alert

Namespace
InSite.Common.Web.UI
Assembly
InSite.UI.dll
public class Alert : Control, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor
Inheritance
Alert
Implements
Inherited Members

Constructors

Alert()

public Alert()

Properties

CssClass

public string CssClass { get; set; }

Property Value

string

HasMessage

public bool HasMessage { get; }

Property Value

bool

Icon

public string Icon { get; set; }

Property Value

string

Indicator

public AlertType Indicator { get; set; }

Property Value

AlertType

ShowClose

public bool ShowClose { get; set; }

Property Value

bool

Text

[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public string Text { get; set; }

Property Value

string

Methods

AddMessage(AlertArgs)

public void AddMessage(AlertArgs args)

Parameters

args AlertArgs

AddMessage(AlertType, string, bool)

public void AddMessage(AlertType indicator, string text, bool isMarkdown = false)

Parameters

indicator AlertType
text string
isMarkdown bool

AddMessage(AlertType, string, string, bool)

public void AddMessage(AlertType indicator, string icon, string text, bool isMarkdown = false)

Parameters

indicator AlertType
icon string
text string
isMarkdown bool

Clear()

public void Clear()

GetMessages()

public IEnumerable<Tuple<AlertType, string, string>> GetMessages()

Returns

IEnumerable<Tuple<AlertType, string, string>>

RenderControl(HtmlTextWriter)

public override void RenderControl(HtmlTextWriter writer)

Parameters

writer HtmlTextWriter

RenderControlInternal(HtmlTextWriter)

public void RenderControlInternal(HtmlTextWriter writer)

Parameters

writer HtmlTextWriter