如何仅对Kendo树形视图的父节点应用样式?

4

我在我的应用程序中有一个kendo树形视图,我想仅为kendo树形视图的父节点应用样式。如何应用样式,例如字体加粗,以应用于树形视图的父节点?我的树形视图代码如下:

var tree= $("#treeview").kendoTreeView({
  checkboxes: {
    checkChildren: true
  },
  dataSource: [{        
     id: 2, text: "select all", expanded: true,
     items: [
        { id: 3, text: "ABH" },
        { id: 4, text: "VFG" },
        { id: 5, text: "VFGT" },
        { id: 6, text: "GTYUJ" },
        { id: 7, text: "GHJ" }
     ]
   }]
 }).data("kendoTreeView");

here is the JSfiddle.


糟糕的英语,可怕的代码缩进。 - Dan Dascalescu
1个回答

6

尝试在脚本中配置此项。

  .k-top.k-bot {font-weight: bold;}

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接