简体   繁体   English

smartGWT listGrid将复选框更改为图像

[英]smartGWT listGrid change checkBox to image

hi all i am using smartGWT 4 . 大家好,我正在使用smartGWT 4。 i want to change the listGrid checkBox to radio button image i used the following methods but non of them works : 我想将listGrid复选框更改为单选按钮图像,但我使用了以下方法,但其中一些方法均无效:

         listgrid.setBooleanTrueImage("radioSelect.png");
         listgrid.setBooleanFalseImage("radioDisSelect.png");

and

        listgrid.setCheckboxFieldTrueImage("radioSelect.png");
        listgrid.setCheckboxFieldFalseImage("radioDisSelect.png");

can any one please provide any help ? 有谁能提供帮助吗? in smartGWT 3 i used : 在smartGWT 3中,我使用了:

         listgrid.setBooleanTrueImage("radioSelect.png");
         listgrid.setBooleanFalseImage("radioDisSelect.png");

but now they are not worcking in smartGWT 4. 但现在他们并没有担心smartGWT 4。

when i inspect the checkBox using inspect element i notice the image URL in the css class 当我使用inspect元素检查checkBox时,我注意到css类中的图像URL 在此处输入图片说明

Don't know why those ListGrid methods don't work, but I believe you can control those images (app-wide) via load_skin.js. 不知道为什么这些ListGrid方法不起作用,但是我相信您可以通过load_skin.js控制这些图像(应用程序范围内)。 See isc.CheckboxItem --> checkedImage and uncheckedImage. 参见isc.CheckboxItem-> checkedImage和uncheckedImage。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM