hello
i want use multiple type in treeview
@(Html.TreeView(Model)
.EmptyContent("TelepacTechnology.")
.Children(m => m.childs)
.HtmlAttributes(new { id = "tree" })
.ChildrenHtmlAttributes(new { @class = "subItem" })
.ItemText(m => m.Libelle)
.ItemTemplate(
@
@if (@item.Cat == 0)
{
}
else
{
}
/**/
/**/
/**/
/**/
)
)
"types": {
"default": { "icon": "fa fa-sitemap" },
"fax": { "icon": "fa fa-sitemap" },
"poste": { "icon": "fa fa-phone" }
},
if (@item.Cat == 0) i want use type fax
else i want use type poste
thanks
Vinay SinghPosted May 27, 2021, 2:49 PM
Mouhssine tahriPosted May 28, 2021, 10:45 AM
Mouhssine tahriPosted May 28, 2021, 9:14 AM
Mouhssine tahriPosted May 27, 2021, 2:37 PM
Vinay SinghPosted May 27, 2021, 2:25 PM
Mouhssine tahriPosted May 27, 2021, 2:19 PM
Vinay SinghPosted May 27, 2021, 2:12 PM