extjs的panel怎样显示内容? 5
请问如何做到下面这个效果(鼠标移动过去显示内容)vartab1195=Ext.widget({title:'采购申请',xtype:'form',id:'innerTab...
请问如何做到下面这个效果(鼠标移动过去显示内容)
var tab1195 = Ext.widget({
title: '采购申请',
xtype: 'form',
id: 'innerTabsForm1195_137594309317',
collapsible: true,
collapsed:false,
bodyPadding: 5,
width: 485,
fieldDefaults: {
labelAlign: 'left',
msgTarget: 'side'
},
defaults: {
anchor: '100%'
},
items: [ {"xtype":"container","layout":"hbox","items":[{"xtype":"container","flex":1,"border":false,"layout":"anchor","defaultType":"textfield","items":[{"fieldLabel":"用途","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"char1","value":"7uu7u7111111tsfg156731111111","xtype":"textfield"},{"fieldLabel":"估计价款","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"float1","value":"1.00"}]},{"xtype":"container","flex":1,"border":false,"layout":"anchor","defaultType":"textfield","items":[{"fieldLabel":"需用日期","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"date1","xtype":"datefield","value":"2013-08-06","format":"Y-m-d"},{"fieldLabel":"估计价款(大写)","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"char2","value":"23","xtype":"textfield"}]}]} ]
});
tab1195.render(document.getElementById('show_from_1195_137594309317')); 展开
var tab1195 = Ext.widget({
title: '采购申请',
xtype: 'form',
id: 'innerTabsForm1195_137594309317',
collapsible: true,
collapsed:false,
bodyPadding: 5,
width: 485,
fieldDefaults: {
labelAlign: 'left',
msgTarget: 'side'
},
defaults: {
anchor: '100%'
},
items: [ {"xtype":"container","layout":"hbox","items":[{"xtype":"container","flex":1,"border":false,"layout":"anchor","defaultType":"textfield","items":[{"fieldLabel":"用途","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"char1","value":"7uu7u7111111tsfg156731111111","xtype":"textfield"},{"fieldLabel":"估计价款","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"float1","value":"1.00"}]},{"xtype":"container","flex":1,"border":false,"layout":"anchor","defaultType":"textfield","items":[{"fieldLabel":"需用日期","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"date1","xtype":"datefield","value":"2013-08-06","format":"Y-m-d"},{"fieldLabel":"估计价款(大写)","readOnly":true,"afterLabelTextTpl":required,"allowBlank":false,"anchor":"95%","name":"char2","value":"23","xtype":"textfield"}]}]} ]
});
tab1195.render(document.getElementById('show_from_1195_137594309317')); 展开
3个回答
展开全部
Ext.onReady(function(){
Ext.QuickTips.init();
var btn = new Ext.Button({
text: "悬停演示",
renderTo: Ext.getBody(),
tooltip: "这是一个悬停演示的按钮,怎么样?<br>是不是很漂亮?",
tooltipType: "title"
});
});
Ext.QuickTips.init();
var btn = new Ext.Button({
text: "悬停演示",
renderTo: Ext.getBody(),
tooltip: "这是一个悬停演示的按钮,怎么样?<br>是不是很漂亮?",
tooltipType: "title"
});
});
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你的组件里增加
tooltip : ‘这是鼠标移过来时显示的信息!’
tooltip : ‘这是鼠标移过来时显示的信息!’
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询