首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ExtJS 4中的slimScroll栏

ExtJS 4中的slimScroll栏
EN

Stack Overflow用户
提问于 2013-01-13 19:39:02
回答 1查看 233关注 0票数 2

我需要自定义我的滚动条。如何做到这一点?我有一个简单的格子面板。我想要一个slimScroll酒吧.如果只有通过JQuery才能实现,如何调用slimScroll bar的jquery?

这就是我到目前为止所得到的

代码语言:javascript
复制
Ext.define('TestApplication.view.display.DisplayOne' ,{
    extend     : 'Ext.grid.Panel',
    alias      : 'widget.displayOne',
    height     : 280,
    width      : 742,
    padding    : 4,
    viewConfig : {
        stripeRows : true,
        forceFit   : true,
        emptyText  : 'No Records to display',
        getRowClass: function(record, index) {
            if (record.get('empNo') == '000') {
                return 'display-false';
            } 
        }
    },
    initComponent: function () {
        this.store   = 'RegistrationStore';
        this.columns = [
            {
                xtype    : 'rownumberer',
                width    : 40,
                sortable : false
            },
            {
                text     : 'Employee ID',
                sortable : false,
                dataIndex: 'empNo',
                sortable : false
            },
            {
                text     : 'Employee Name',
                sortable : false,
                dataIndex: 'fname',
                sortable : false,
                flex     : 1
            },
            {
                text     : 'Gender',
                sortable : true,
                dataIndex: 'gender',
                sortable : false
            },       
            {
                text     : 'Branch',
                sortable : true,
                dataIndex: 'branch',
                sortable : false
            },
            {
                text     : 'Religion',
                sortable : true,
                dataIndex: 'religion',
                sortable : false
            },
            {
                text     : 'Marital',
                sortable : true,
                dataIndex: 'marital',
                sortable : false
            }
        ];

        this.callParent(arguments);
    }
});
EN

回答 1

Stack Overflow用户

发布于 2013-05-27 15:43:53

您可以通过更新sass文件并使用指南针重新生成css来自定义滚动条。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14303059

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档