Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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 touch2中聚焦/突出显示工具栏内部元素_Sencha Touch_Extjs_Sencha Touch 2 - Fatal编程技术网

Sencha touch 如何在sencha touch2中聚焦/突出显示工具栏内部元素

Sencha touch 如何在sencha touch2中聚焦/突出显示工具栏内部元素,sencha-touch,extjs,sencha-touch-2,Sencha Touch,Extjs,Sencha Touch 2,我已经使用SenchaTouch2完成了应用程序。根据要求当鼠标移到(指向)特定元素上时,我需要聚焦/突出显示工具栏元素内部。我添加了pressedCls,一旦按下,它就会工作,但我需要在鼠标上方突出显示。有谁能告诉我如何做到这一点 这是我的密码: initialize:function () { this.callParent(arguments); var Button1 = { xtype:"button", id: 'suvilasBtn'

我已经使用SenchaTouch2完成了应用程序。根据要求当鼠标移到(指向)特定元素上时,我需要聚焦/突出显示工具栏元素内部。我添加了pressedCls,一旦按下,它就会工作,但我需要在鼠标上方突出显示。有谁能告诉我如何做到这一点

这是我的密码:

initialize:function () {
    this.callParent(arguments);
    var Button1 = {
        xtype:"button",
        id: 'suvilasBtn',            
        html: '<img  height="30" width="40", src="resources/sass/images/icons/about.png" />',            
        pressedCls: 'customPressedCls',            
        scope:this
    };
    var Button2 = {
        xtype: "button",
        id: 'projectBtn',
        html: '<img  height="30" width="40", src="resources/sass/images/icons/projects.png" />',
        handler: this.onProjectsButtonTap,
        scope: this
    };
    var bottomToolbar = {
        xtype:"toolbar",
        docked:"bottom",
        scrollable: false,                      
        defaults: {
            iconMask: true,
            ui: 'plain'
        },
        layout: {
            pack : 'center',
            align: 'center'
        },
        items:[
            Button1,
            Button2
        ]
    };
    this.add([ bottomToolbar ]);
}
初始化:函数(){
this.callParent(参数);
变量1={
xtype:“按钮”,
id:“suvilasBtn”,
html:“”,
pressedCls:“customPressedCls”,
范围:本
};
变量按钮2={
xtype:“按钮”,
id:'projectBtn',
html:“”,
处理程序:this.onProjectsButtonTap,
范围:本
};
变量底部工具栏={
xtype:“工具栏”,
停靠:“底部”,
可滚动:false,
默认值:{
是的,
用户界面:“普通”
},
布局:{
包装:'中心',
对齐:“居中”
},
项目:[
按钮1,
按钮2
]
};
添加([bottomToolbar]);
}

Hmm。。。Sencha Touch旨在用于无鼠标界面。触摸:)是的,正确。谢谢你提供的信息。现在我将以不同的方式前进。我将在点击按钮时更改html。