I have used syncfusion blazor menu for page navigation in my web applications.I would like to know how to use "mega menu" in blazor web applications.
<SfMenu Items="@data">
<MenuFieldSettings Text="Value" Children="Options"></MenuFieldSettings>
<MenuTemplates TValue="CategoryModel">
<Template>
@{
var MenuItems = context;
if (MenuItems.Value != null )
{
<div>@MenuItems.Value</div>
}
else
{
<div style="width: 400px; height: 200px; padding: 2rem;">
<div tabindex="0" class="e-card" >
<div class="e-card-header">
<div class="e-card-header-caption">
<div class="e-card-header-title">Description</div>
</div>
</div>
<div class="e-card-content">
@MenuItems.About
</div>
</div>
</div>
}
}
</Template>
</MenuTemplates>
</SfMenu>
</div>
@code{
private List<CategoryModel> data = new List<CategoryModel>
{
new CategoryModel {
Value = "Products",
Options = new List<CategoryModel>
{
new CategoryModel {
Id = "about",
About = "We are on a mission to provide world-class best software solutions for web, mobile and desktop platforms. Around 900+ applications are desgined and delivered to our customers to make digital & strengthen their businesses."
}
}
},
new CategoryModel {
Value = "Services",
Options = new List<CategoryModel>
{
new CategoryModel {
Id = "about",
About = "We are on a mission to provide world-class best software solutions for web, mobile and desktop platforms. Around 900+ applications are desgined and delivered to our customers to make digital & strengthen their businesses."
}
}
},
new CategoryModel {
Value = "About Us",
Options = new List<CategoryModel>
{
new CategoryModel {
Id = "about",
About = "We are on a mission to provide world-class best software solutions for web, mobile and desktop platforms. Around 900+ applications are desgined and delivered to our customers to make digital & strengthen their businesses."
}
}
},
new CategoryModel { Value = "Careers" },
new CategoryModel { Value = "Sign In" }
};
private class CategoryModel
{
public List<CategoryModel> Options { get; set; }
public string Value { get; set; }
public string About { get; set; }
public string Id { get; set; }
}
} |
thanks for support...
I need this mega menu in attached format
and also I need brudcrum in page header when I navigate from mega menu
Attachment: image001_4a40ae54.zip
<Template>
@{
var MenuItems = context;
if (MenuItems.Value != null )
{
<div>@MenuItems.Value</div>
}
else
{
<div style="width: 100%; padding: 2rem;">
<div tabindex="0" >
<div class="e-card-header">
<div class="e-card-header-caption">
<div class="e-card-header-title">Description</div>
</div>
</div>
<div>
<input />
</div>
<table class="e-table">
<tr>
<td> <div style="padding-right:30px;">
<p>Configuration </p>
<hr>
<li>Paygroup master</li>
<li>Paygroup mapping</li>
<li>master</li>
</div></td>
<td> <div style="padding-right:30px;">
<p>Configuration </p>
<hr>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</div></td>
<td> <div style="padding-right:30px;">
<p>Associate </p>
<hr>
<li>Master</li>
<li>Salve</li>
<li>Import</li>
</div></td>
</tr>
</table>
<table class="e-table">
<tr>
<td> <div style="padding-right:30px;">
<p>Configuration </p>
<hr>
<li>Master</li>
<li>Salve</li>
<li>Import</li>
</div></td>
<td> <div style="padding-right:30px;">
<p>Transaction </p>
<hr>
<li>Promote</li>
<li>Decline</li>
<li>wait</li>
</div></td>
</tr>
</table>
</div>
</div>
}
}
</Template> |
Thanks for prompt reply..
I will implement the same.
Can you add brudcrum example when I navigate from mega menu.
Please help...