extjs - ExtJS 6 Ext.field.Date 不包含 Ext.panel.Date 的标题
问题描述
我需要一种简单的方法来选择带有Ext.field.Date
组件的年份。
Ext.panel.Date
包含能够选择年份的标题。但是,Ext.field.Date
内部使用Ext.panel.Date
的 不包含此标头。
简单的小提琴来说明我的意思。
如何在Ext.field.Date
选择器中显示此标题?也许我错过了一些配置?或者它是一个错误,我必须在源代码中修复它?
解决方案
所以它发生是因为日历中的标题是空对象Ext.panel.Date
override: 'Ext.panel.Date',
constructor: function(config){
delete config.header
this.callParent([config])
},
推荐阅读
- spring-boot - 使用过滤器添加响应头
- java - 升级到 Gradle 包装器到 7.0.2 和 JDK 11 后,Android 版本构建失败
- php - 在 linux 服务器 GoDaddy 中设置 PHPMailer
- python - 如何向量化行连接
- java - Java:如何显式调用自己的类版本的方法?
- javascript - 如何将鼠标悬停在文本上以显示和播放视频?
- mysql - 我可以在 REPLACE 命令中使用 LIKE
- fetch - 如何为 Fetch API 设置基本身份验证?
- mongodb - 如何按日期字段过滤猫鼬中的对象数组,仅选择最近的日期
- reactjs - 用画线作为标尺反应测量图像