gpt4 book ai didi

grails - Easygrid自定义格式化程序,用于创建链接-未生成

转载 作者:行者123 更新时间:2023-12-02 15:28:15 24 4
gpt4 key购买 nike

我已经基于Easygrid petclinic示例应用程序中的示例创建了一个页面。
除了格式化程序/取消格式化外,其他所有东西都工作正常。
我有一个名为“key”的字段,标签为“date”,为,我试图根据此字段生成超链接。我注意到生成的页面忽略了此属性

我正在分享controller and the gsp

在 Controller 中定义为

        columns {
key{ label 'Date' }

在 View 中
    <div id="grid-container" style="max-height:100%;overflow:auto;">
<grid:grid id='jqgridinitial' name="daily">
<grid:set width="2000" height="450">
<grid:set col="key" label="Date" formatter='f:customWikiFormat' unformat="f:wikiUnFormat"/>

生成的页面忽略了格式化程序
   {"searchoptions":{"clearSearch":false},"editable":false,"name":"key","search":null,"sortable":true,"label":"Date"

},

我还通过插件的创建者引用了 this solution

如果需要其他详细信息,请告诉我

最佳答案

您的语法有点错误。父标记基本上是grid:grid,在其中可以设置不同的属性(通过使用grid:set)。
如果您未指定“col”,则将在实际网格上设置这些属性。

<grid:grid id='jqgridinitial' name="daily">
<grid:set width="2000" height="450"/>
<grid:set col="key" label="Date" width="100" formatter='f:customWikiFormat' unformat="f:wikiUnFormat"/>
</grid:grid>

关于grails - Easygrid自定义格式化程序,用于创建链接-未生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24380692/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com