里面看起来是设置iconCls
我能加一个时钟吗?- -
不好意思
还有改变字体的
To change the font.
.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td {
font-size: 16px;
}
写在页面上就可以了吗?EXT会自动的调用吗?
还有就是extjs有新记录的时候想加一个声音提示,是要加控件吗?
谢谢咯!
[b]问题补充:[/b]
你可以在css class的定义里面用个background-image来指定你的时钟图标
背景图片呀,我的意思是想把本机的时间显示在title后面- -
还有我在css里面(JSP里包含了)加了
.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td {
font-size: 100px;
}
可字体还是没变。。
[b]问题补充:[/b]
还有,声音的话不需要已一直播放,只需要在来新的记录的时候短的提示一下就可以的,flash没用过,不会- -
[b]问题补充:[/b]
可我都不知道这些文件该放在哪里SoundSwf.as,SoundSwf.swf,SoundSwf.fla,还有*.mp3
[b]问题补充:[/b]
还有就是window.onload=function(){
SoundSwf.playSound('event.mp3',2);
//SoundSwf.playSound('alarm.mp3',1);
//SoundSwf.playSound('event.mp3',4);
}
在ext的success: function(response , options ){ }
中也是这么写吗- -
[b]问题补充:[/b]
上面的当没问过- -
[b]问题补充:[/b]
jsp里加了
但在extjs的js里调用SoundSwf.playSound('event.mp3',2);
它说SoundSwf未定义
[b]问题补充:[/b]
或者给我一个setTitle的例子也可以- -
[b]问题补充:[/b]
没人知道吗?
那段flash本来就是你调用一次就播放一次咯.
你自己在Task里面判断是否有新记录,就调用咯.
或者监听store的事件
1.setTitle( String title, [String iconCls] ) : void
Sets the title text for the panel and optionally the icon class.
In order to be able to set the title, a header element must have been created for the Panel. This is triggered either by configuring the Panel with a non-blank title, or configuring it with header: true.
Parameters:
[b]title : String[/b]
The title text to set
[b]iconCls : String/b iconCls A user-defined CSS class that provides the icon image for this panel
Returns:
void
title是文字, iconCls是一个css class,你可以在css class的定义里面用个background-image来指定你的时钟图标
2.css会自动调用,用firebug看下grid生成的源码即知,x-grid3-hd-row是grid的表头,x-grid3-row 是grid的每行的class
3.声音提示,用flash吧[url]http://atian25.iteye.com/blog/440864[/url]