0
A
回答
0
我使用此代码解决了问题...
var accessibilityButton = {
xtype: 'button',
ui: 'custom-btn-confirm',
maxWidth: '360px',
centered: true,
flex: 1,
scope: this,
style: 'color: #ffffff',
text: 'Active Accesibility',
ui: 'custom-btn-confirm',
handler: function changeStyle() {
// Swap the CSS for Accessibility
var i, a, url, btn;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1) {
url = a.href;
btn = document.getElementById("ext-element-114");
if(url.lastIndexOf('app.css') !== -1) {
a.href = 'resources/css/app-accesibility.css';
btn.textContent = "AAAA";
}
else {
a.href = 'resources/css/app.css';
btn.textContent = "BBBB";
}
}
}
}
};
相关问题
- 1. 在Sencha Touch中管理CSS
- 2. 在Sencha Touch中提交表单
- 3. 在Sencha Touch 2中提交表单
- 4. 搜索CSS(Sencha Touch)教程
- 5. 如何在sencha touch中提交http post multipart中的json文件?
- 6. 预加载css-background-images在sencha-touch中的jquery转换
- 7. 如何在Sencha Touch 2中使用JsonP提交表单?
- 8. 如何在Sencha touch中为活动项添加css 2.2.1
- 9. sencha cmd 4和sencha touch 2.3在app.json中添加css
- 10. 如何在sencha touch中实现SQLite?
- 11. 如何在sencha touch中使用Ext.panel.Panel?
- 12. 如何在Sencha Touch中覆盖类
- 13. 如何在sencha-touch中定义内场
- 14. 如何在Sencha Touch中显示图像?
- 15. 如何在Sencha Touch 2.0中清除Cookies
- 16. Sencha touch 2- Ext.dispatch更换?
- 17. Sencha Touch Grouper物业转换
- 18. Sencha Touch 2 - 切换视图
- 19. 有没有办法将Sencha Touch转换为Sencha EXTJs(或EXTJs Touch)?
- 20. 如何根据htm事件在Sencha Touch中切换视图?
- 21. 如何在Sencha Touch中转换日期和时间的格式?
- 22. Sencha Touch - 如何实施optgroup
- 23. 在sencha touch中禁用monitorOrderation
- 24. Sencha Touch - 在屏幕转换的延迟
- 25. 如何覆盖Sencha Touch中的Ext.Date
- 26. 如何实现sencha touch 2.0中的sass
- 27. 使用Sencha Touch提交表单
- 28. Sencha Touch 2表单不提交
- 29. Sencha touch seachfield提交什么听众
- 30. 如何在Sencha Touch 2上升级Cordova