@using Syncfusion.EJ2.Blazor.Calendars
@using Syncfusion.EJ2.Blazor.Buttons
@using Syncfusion.EJ2.Blazor.Navigations
<EjsAccordion>
<AccordionItems>
<!--Status-->
<AccordionItem>
<HeaderTemplate>
<div>
Record Status
<label style="font-size:smaller;"></label>
</div>
</HeaderTemplate>
<ContentTemplate>
<ul id="status">
@foreach (var item in items)
{
<EjsCheckBox Label=@item.Description @bind-Checked=@item.IsSelectedBool CssClass="e-primary"></EjsCheckBox>
}
</ul>
</ContentTemplate>
</AccordionItem>
<!--Date Range-->
<AccordionItem Header="Date Range">
<ContentTemplate>
<EjsDatePicker Placeholder="Start Date" @bind-Value=@RangeStart Readonly=@SearchAllDatesBool></EjsDatePicker>
</ContentTemplate>
</AccordionItem>
</AccordionItems>
</EjsAccordion>
@code{
public DateTime? RangeStart { get; set; } = DateTime.Now;
public bool SearchAllDatesBool { get; set; } = true;
private List<ItemData> items { get; set; } = new List<ItemData>
{
new ItemData() { Description = "Checkbox", IsSelectedBool = true }
};
public class ItemData
{
public string Description { get; set; }
public bool IsSelectedBool { get; set; }
}
}
|