开发者

grails: grailsui : cannot access dataTable outside <gui> tag

开发者 https://www.devze.com 2023-01-14 23:01 出处:网络
I tried to access Datatable outside gui tag, but failed. Could some tell me why? thanks. the code like this:

I tried to access Datatable outside gui tag, but failed. Could some tell me why?

thanks.

the code like this:

<gui:dataT开发者_JAVA百科able id="myDataTable" .../>
<script>
    var data = GRAILSUI.myDataTable;
    alert("hi, " + data);

</script>

it ends with "hi, undefined"


Did you import the resources correctly ?

in the header ?

0

精彩评论

暂无评论...
验证码 换一张
取 消