【问题标题】:how to get bold text in the kendo UI in panel bar text?如何在面板栏文本的剑道 UI 中获取粗体文本?
【发布时间】:2017-02-02 19:00:12
【问题描述】:
@(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 框中!。

【问题讨论】:

    标签: kendo-ui kendo-panelbar


    【解决方案1】:

    将 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 ");
    }))
    

    【讨论】:

      猜你喜欢
      • 2014-05-20
      • 1970-01-01
      • 2014-09-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-02
      • 2020-02-10
      • 2013-05-07
      相关资源
      最近更新 更多