如何在面板栏文本中的 kendo UI 中获取粗体文本?
how to get bold text in the kendo UI in panel bar text?
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandMode(PanelBarExpandMode.Single)
.Items(PanelBar =>
{
PanelBar.Add().Text("abcd")
.Expanded(true)
.Content("abcd-have to show in bold text ");
}))
"abcd" 文本必须以粗体显示 as!???如何获取它,但文本不在 .content 框中!
根据需要使用 LinkHtmlAttributes() 方法style/class:
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandMode(PanelBarExpandMode.Single)
.Items(PanelBar =>
{
PanelBar.Add().Text("abcd")
.LinkHtmlAttributes(new { style = "font-weight: bold;" })
.Expanded(true)
.Content("abcd-have to show in bold text ");
}))
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandMode(PanelBarExpandMode.Single)
.Items(PanelBar =>
{
PanelBar.Add().Text("abcd")
.Expanded(true)
.Content("abcd-have to show in bold text ");
}))
"abcd" 文本必须以粗体显示 as!???如何获取它,但文本不在 .content 框中!
根据需要使用 LinkHtmlAttributes() 方法style/class:
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandMode(PanelBarExpandMode.Single)
.Items(PanelBar =>
{
PanelBar.Add().Text("abcd")
.LinkHtmlAttributes(new { style = "font-weight: bold;" })
.Expanded(true)
.Content("abcd-have to show in bold text ");
}))