美文网首页
SAPUI5 修改Grid Table样式

SAPUI5 修改Grid Table样式

作者: 唐伯牛 | 来源:发表于2017-06-09 14:40 被阅读0次

效果图:


2017-06-09_143911.png

var myFormatter = { setBackgroundColor: function (sValue) { var id = this.getId(); var $elm = $('#' + id); var className = this.data('color'); $elm.closest('td').addClass(className); return sValue; } }
xxx.view.xml
<Table ...> <columns> <Column hAlign="Center" resizable="false"> <multiLabels> <m:Label text="Today" textAlign="Center" width="100%"/> </multiLabels> <template> <m:Label app:color="red" text="{ path: '/Today', formatter: 'myFormatter.setBackgroundColor' }"/> </template> </Column> ... </Table>

相关文章

网友评论

      本文标题:SAPUI5 修改Grid Table样式

      本文链接:https://www.haomeiwen.com/subject/amffqxtx.html