Class AlertTagHelper
- Namespace
- JJMasterData.Web.TagHelpers
- Assembly
- JJMasterData.Web.dll
public class AlertTagHelper : TagHelper, ITagHelper, ITagHelperComponent
- Inheritance
-
AlertTagHelper
- Implements
-
- Inherited Members
-
Constructors
AlertTagHelper(HtmlComponentFactory)
public AlertTagHelper(HtmlComponentFactory htmlComponentFactory)
Parameters
htmlComponentFactory
HtmlComponentFactory
Properties
Color
[HtmlAttributeName("color")]
public BootstrapColor Color { get; set; }
Property Value
- BootstrapColor
CssClass
[HtmlAttributeName("css-class")]
public string? CssClass { get; set; }
Property Value
- string
Icon
[HtmlAttributeName("icon")]
public IconType? Icon { get; set; }
Property Value
- IconType?
Message
[HtmlAttributeName("message")]
public string? Message { get; set; }
Property Value
- string
Messages
[HtmlAttributeName("messages")]
public List<string>? Messages { get; set; }
Property Value
- List<string>
[HtmlAttributeName("show-close-button")]
public bool ShowCloseButton { get; set; }
Property Value
- bool
Title
[HtmlAttributeName("title")]
public string? Title { get; set; }
Property Value
- string
TitleSize
[HtmlAttributeName("title-size")]
public HeadingSize TitleSize { get; set; }
Property Value
- HeadingSize
Methods
ProcessAsync(TagHelperContext, TagHelperOutput)
Asynchronously executes the TagHelper with the given context
and
output
.
Contains information associated with the current HTML tag.
A stateful HTML element used to generate an HTML tag.
A Task that on completion updates the output
.
By default this calls into Process(TagHelperContext, TagHelperOutput)..
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters
context
TagHelperContext
output
TagHelperOutput
Returns
- Task