namespace
ej2_core_app.Pages
{
public class IndexModel : PageModel
{
private readonly
ILogger<IndexModel> _logger;
public
List<AccordionItems> items
= new
List<AccordionItems>
{
new AccordionItems{
header = "ASP.NET", content = "ASP.NET
Core content", badgeContent = "New" },
new
AccordionItems{ header = "ASP.NET MVC", content = "ASP.NET
MVC content", badgeContent = "Updated" },
new AccordionItems{
header = "JavaScript", content = "JavaScript
content", badgeContent = "Old" }
};
public IndexModel(ILogger<IndexModel>
logger)
{
_logger = logger;
}
public void OnGet()
{
}
}
public class AccordionItems
{
public string? header { get; set; }
public string? content { get; set; }
public string?
badgeContent { get; set; }
}
}
|