我对包含少量控件的视图有看法。所有的控件都是可见的,而滑块根本不可见。我已经看到here的例子,但它不起作用。有人能指出我缺少的配置吗?ExtJS滑块在视图上不可见
Ext.define('KPS.view.LaunchPageMain', {
extend: 'Ext.window.Window',
requires: ['Ext.slider.Single'],
alias: 'widget.launchpagemain',
layout: 'fit',
maximized: true,
height: 500,
width: 500,
title: 'KPS',
modal: true,
draggable: false,
tools: [{
xtype: 'sliderfield',//slider is also not working.
width: 200,
value: 3,
increment: 1,
minValue: 1,
maxValue: 5
}, {
xtype: 'button',
itemId: 'btnUserType',
text: 'User Roles',
menu: {
xtype: 'menu',
showSeparator: false,
items: [{
xtype: 'checkboxgroup',
columns: 1,
itemId: 'selectionUserTypes',
vertical: true,
items: [{
boxLabel: 'User',
name: 'userSelection',
inputValue: 'U'
}, {
boxLabel: 'Admin',
name: 'userSelection',
inputValue: 'A'
}, {
boxLabel: 'Super Admin',
name: 'userSelection',
inputValue: 'S'
}]
}]
}
}, {
xtype: 'button',
itemId: 'btnLogout',
text: 'Logout'
}],
items: [{
xtype: 'contentView'
}]
});
给它工作的人。问题是我正在使用自定义主题。有了这个主题,它是不可见的。使用默认的主题,它只是工作正常。我应该早点检查一下。 – user1640256 2014-09-04 14:40:17