我试图在Kendo Grid中使用标题和按钮编写组头模板。
我有这样的事情:
$ stack exec yi
Run from outside a project, using implicit global project config
Using resolver: lts-6.7 from implicit global project's config file: /Users/kakkun61/.stack/global-project/stack.yaml
Configuration '/Users/kakkun61/.config/yi/yi.hs' changed. Recompiling.
Program reconfiguration successful.
Launching custom binary /Users/kakkun61/.cache/yi/yi-darwin-x86_64
It works.
我想用函数confirmGroup调用函数confirmGroup。 不幸的是:
group: { field: "ManagerName" }
},
columns: [
{ field: "Id", title: "Id" },
{ field: "ClientName", title: "Klient" },
{ field: "EngagementName", title: "Sprawa" },
{ field: "SubprojectName", title: "Podsprawa" },
{ field: "ManagerName", title: "Manager", groupHeaderTemplate: "#= value # <button class='rounded-button rounded-button-blue' type='button' onclick='confirmGroup()'>@Resources.Lang.confirmGroup</button>" },
{ field: "ManagerId", title: "ManagerId", hidden: true },
{ field: "LocationName", title: "Lokalizacja" },
{ field: "Signatures", title: "Ostatnia sygnatura" },
{ field: "LogicalState", title: "Stan" }
]
不起作用。 我一直在寻找解决方案,但没有找到任何东西。 有人能告诉我怎么称呼这种方法吗?
答案 0 :(得分:0)
使用转义"
对您的参数进行环绕,并通过data.ManagerId
即可。
onclick='confirmGroup(\"#=data.ManagerId#\")'