Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha touch Sencha触摸移除组标题并增加间隙_Sencha Touch - Fatal编程技术网

Sencha touch Sencha触摸移除组标题并增加间隙

Sencha touch Sencha触摸移除组标题并增加间隙,sencha-touch,Sencha Touch,如何删除Sencha touch分组列表标题并增加间距。为列表定义自定义类,并在css文件中添加该类的css。 当然,如果使用存储并添加要分组的所需字段名,则分组配置选项设置为true 查看: Ext.define('app.view.Temp', { extend : 'Ext.List', xtype : 'temp', config : { title : 'Temp', cls : 'x-c

如何删除Sencha touch分组列表标题并增加间距。

为列表定义自定义类,并在css文件中添加该类的css。 当然,如果使用存储并添加要分组的所需字段名,则分组配置选项设置为true

查看:

Ext.define('app.view.Temp', {
        extend : 'Ext.List',
        xtype : 'temp',

        config : {
            title : 'Temp',
            cls : 'x-contacts',
            disableSelection: true,
            grouped : true,
            store : 'YourStore',
            ui : 'round',
            cls:'modifiedHeader',
            //custom css classname
            itemTpl : ['<span>{field_name}</span>'].join('')
        }
    });

app.css

.modifiedHeader .x-list-header {
//your desired css here
display:none;//If you want to hide the header
}

我想删除分组的列表标题。如果可能的话,增加两组之间的差距。
.modifiedHeader .x-list-header {
//your desired css here
display:none;//If you want to hide the header
}