0
@(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”文本必须以粗体显示!???如何获取它,但文本不在 .content 框中!。

4

1 回答 1

0

将 LinkHtmlAttributes() 方法与您想要的任何样式/类一起使用:

@(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 ");
}))
于 2017-02-02T19:11:29.143 回答