Multicheck is used for selecting multiple values from a list. Has the same features as the DropdownList except it can select more than one value.
Multicheck/Index.cshtml
@(Html.Awe().Multicheck(new MulticheckOpt
{
Name = "MealsMultiChk",
Value = new[] { Db.Meals[0].Id, Db.Meals[2].Id, Db.Meals[14].Id },
Url = Url.Action("GetMealsImg", "Data"),
ClearBtn = true
}.ImgItem()))
Awesome/DataController.cs
public IActionResult GetMealsImg()
{
var url = Url.Content(DemoUtils.MealsUrl);
var items = Db.Meals.OrderBy(m => m.Id).ToArray()
.Select(o => new MealDisplay(o.Id, o.Name, url + o.ImageName, o.Category.Id));
return Json(items);
}