ext引用模板的方法
// 已关联案件
Ext.define(‘WebSystem.view.UnRelateFileGridPanel’, {
extend: ‘Ext.Panel’,
xtype: ‘unRelateFileGridPanel’,
id: ‘unRelateFileGridPanelId’,
enableColumnMove: false,
store: ‘UnRelateFileStore’,
autoScroll: true,
viewConfig: {
forceFit: true,
loadMask: false
},
items: [
{
xtype: ‘dataview’,
tpl: new Ext.XTemplate(
‘
- ’,
‘’,
‘ - ’,
‘’,
‘’,
‘’,
‘’,
‘’,
‘’,
‘’,
‘’,
‘{[this.handleName(values.filename)]}’,
‘下载’,
‘’,
‘ - ’,
‘’,
‘
’,
{
isPic: function(type){
if(type == ‘pic’){
return true;
}
else{
return false;
}
},
handleName: function(value){
return value.replace(/ (.{20})(.+)(.{2}.+\w+ )))/g, "$1… KaTeX parse error: Expected 'EOF', got '}' at position 26: … }̲ …/,
regexText: ‘请点击选择正确日期’,
fieldLabel: ‘上传时间’,
editable: false,
value: getCurrentMonthTime()[0],
blankText: ‘必须选择起始时间’,
listeners: {
select: function () {
if (this.getValue() > this.up(‘toolbar’).down(’#enddate’).getValue()) {
Ext.Msg.alert(‘提示’, ‘起始时间不能大于结束时间’);
this.setValue();
}
}
}
},
{
xtype: ‘datefield’,
itemId: ‘enddate’,
labelWidth: 0,
width: 140,
anchor: ‘100%’,
format: ‘Y-m-d’,
regex: /^(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/,
regexText: ‘请点击选择正确日期’,
fieldLabel: ‘-’,
labelSeparator: ‘’,//去掉冒号
editable: false,
value: getCurrentMonthTime()[1],
blankText: ‘必须选择结束时间’,
listeners: {
select: function () {
if (this.getValue() < this.up(‘toolbar’).down(’#startdate’).getValue()) {
Ext.Msg.alert(‘提示’, ‘起始时间不能大于结束时间’);
this.setValue();
}
}
}
},
’ ',
{
xtype: ‘panel’,
layout: ‘column’,
bodyStyle: “border:0!important”,
items: [
{
xtype: ‘button’,
itemId: ‘btnSearch’,
width: 60,
margin: ‘0 0 0 30’,
text: ‘ 搜索’,
style: ‘background-color:#ff4e4e;background-image: url();’
},
{
xtype: ‘button’,
itemId: ‘btnReset’,
width: 60,
margin: ‘0 0 0 30’,
text: ‘ 重置’,
style: ‘background-color:#ff4e4e;background-image: url();’
}
]
}
]
},
{
xtype: ‘toolbar’,
dock: ‘top’,
border: false,
height: 50,
style: ‘’,
defaults: {
style: ‘margin:0;padding:0 5px 0 5px;’
},
items: [
{
xtype: ‘panel’,
layout: ‘column’,
bodyStyle: “border:0!important”,
items: [
{
xtype: ‘button’,
itemId: ‘btnConnect’,
width: 100,
margin: ‘0 0 0 30’,
text: ‘ 关联案件’,
style: ‘background-color:#ff4e4e;background-image: url();’
}
]
}
]
},
{
xtype: ‘pagingtoolbar’,
inputItemWidth: 40,
store: ‘UnRelateFileStore’,
dock: ‘bottom’,
border: false,
displayInfo: true
}
]
});
ext引用模板的方法相关推荐
- Django 3.2.5博客开发教程:一些常用的模板使用方法
一.django static文件的引入方式 1.在django project中创建 static文件夹 2.settings.py中配置要在 STATIC_URL = '/static/' 下边 ...
- ExtJs 备忘录(9)—— Ext常用属性、方法小结 [系列完]
一.Ext 1.1 Ext.isEmpty(v, allowBlank) //是否为空[链接] 1.2 Ext.isArray(v) //是否为数组集合 1.3 Ext.isPrimitive(v) ...
- vscode设置默认新建html,VScode修改默认生成的HTML模板的方法
在VScode中,新建HTML页面时可以输入!+tab键,快速生成HTML代码模板,默认生成的代码模板如下: Document 由于生成的代码模板中有一些不需要,所以每次生成后都需要删除,很麻烦.其实 ...
- FreeMarker 语法 include 引用模板
一.java 代码 @Test public void testFreeMarker() throws Exception {//1.创建一个模板文件//2.创建一个Configuration对象Co ...
- php cms 的模板修改,phpcms v9后台登陆模板修改方法和程序版本更新提示修改方法...
Phpcms V9后台登陆及版本更新提示的自定义修改 一.Phpcms V9后台登陆模板修改方法 1. 找到登陆模板文件phpcms/modules/admin/emplates/login.tpl: ...
- Ext DeskTop的使用方法简易教程及相关例子Demo(转)
Ext DeskTop的使用方法简易教程及相关例子Demo(转) ExtJS 2010-12-31 10:11:15 阅读196 评论0 字号:大中小 订阅 http://qwikioffice. ...
- 转:IDEA 创建类注释模板和方法注释模板
转自: IDEA 创建类注释模板和方法注释模板 - 简书 在使用Idea的时候,它的注释模板很简单,不够详细:所有大多数开发者都想设置一个比较详细的注释模板,我现在把我了解的创建类注释模板和方法注释 ...
- WordPress 不同分类目录调用不同模板的方法
https://www.jb51.net/cms/275887.html wordpress不同分类调用不同模板文件 用wordpress做站特别是企业站的时候,多个分类的内容不同需要显示的页面也不一 ...
- [vue] 写出多种定义组件模板的方法
[vue] 写出多种定义组件模板的方法 1.字符串 2.模板字面量 3.<script type="x-template"></script> 4.文件组件 ...
最新文章
- shell脚本替换文件中字符
- Spring Cloud 搭建 Hystrix Dashboard和Turbine
- (原+转)ubuntu14中结束多个caffe进程中的某个
- core Bluetooth(蓝牙4.0)
- java的数据类型、变量类型笔记总结
- springboot做网站_Github 上 Star 最多的个人 Spring Boot 开源学习项目
- Linux大作业任务书,《Linux系统管理》期末大作业任务书(2014.12)(1).doc
- MCollective架构篇1-MCollective架构的引入
- 未定义标识符 stringc/c++(20)_拓展巩固练习(2020.5.20)
- sv_labs学习笔记——sv_lab5_上(System Verilog)
- 读zepto源码之工具函数
- 软件项目建议书模板(免费)
- Adobe illustrator如何修改默认字体
- php请求传感器数据流通道号,一汽大众发动机数据流与通道号 匹配设定数据
- java mat转成二维数组_opencv二维数组转mat
- 苹果设计可变色Apple Watch表带,智能穿戴玩法多
- 超快速!10分钟入门Keras指南
- 为计算机发展做出贡献的人的简介,【七十年七十人】郑守淇:为我国计算机事业奉献一生...
- 关于drawInRect: withAttributes: 等新方法的使用
- 数据,数据流,数据管道
热门文章
- 今天是本站参加seo大赛的第二天,博百优的意思解释
- 青海向南部高寒牧区派出多支“支医团队”
- 自控:梅森公式总是数错,怎么破?
- netty整合websocket支持自签证书出现netty websocket ssl Received fatal alert: certificate_unknown
- 计算机网络基础》在线作业,电子科技大20春《计算机网络基础》在线作业3题目...
- 超火的小蜜蜂撒星星表情包,还有撒圣诞帽、掉糖果、掉菊花表情包
- 南大通用GBase8s 常用SQL语句(234)
- 【SVM回归预测】基于matlab粒子群算法优化SVM回归预测【含Matlab源码 1424期】
- QDateTime与QString互转
- 浪潮与SAP签约,互相相中对方的什么?