Home
PERENDERnew
Theme
Form
Basic components
PDF viewer
chartsnew
Installation
line
File browser
Rich text
Form
Label
Label

1. Demo AstrolLabel

@using Astrol.Component.Basic.Form
@using System.ComponentModel.DataAnnotations
 
<AstrolLabel TItem="Login" For="@nameof(login.Password)" />
@code {
 public class Login { 
 [Display(Name = "Password")]
 public string Password { get; set; }
 }
 private Login login = new Login();
}

Supported parameters

  • TItem (T): Object, model, or entity being represented.
  • Text (string): Text to display in the label. If not defined, it takes the Display name; if not present, it takes the property name to represent.
  • For (string): The label it should focus on when clicked.
  • ChildContent (RenderFragment): Content to include inside the label. If set, it overrides the value of the Text property.
© 2025 AstrolUI v8.0.4
Se ha producido un error no controlado. Recargar 🗙