网格的emptyText
应用了特殊的类吗?我尝试使用Firebug检查元素,只发现了这个:
<div id="gridview-1021" class="x-component x-grid-view x-fit-item x-component-default
x-unselectable" role="presentation" tabindex="-1" style="-moz-user-select: none; width: 398px; height: 150px;">
There are no items to show in this view.
</div>
似乎没有特殊的类来识别和应用CSS到emptyText
。是否有添加类或特殊样式空文本的方法?
注意:
我这样做了,对我很有用:
emptyText: '<div style="width:auto; text-align:center; padding-top:50px; color:red; font-weight:bold;">There are no items to show in this view.</div>'