jQuery MiniUI

标题: Combox设置样式报错Cannot set property 'cellHtml' of undefined [打印本页]

作者: hcm    时间: 2021-8-20 11:38:47     标题: Combox设置样式报错Cannot set property 'cellHtml' of undefined

<script type="text/javascript">
        function onDrawCell(e) {
            var item = e.record, field = e.field, value = e.value;
            //组织HTML设置给cellHtml
            e.cellHtml = '<span style="color:red;">'+value+'</span>';   
        }

    </script>



作者: felt    时间: 2021-8-20 14:56:48

http://www.miniui.com/demo/#src=combobox/drawcell.html
我们示例就是这样处理的,可以正常使用。




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2