简体   繁体   English

Ext-JS QuickTips无法正常工作

[英]Ext-JS QuickTips not working correctly

I'm trying to implement one of Saki's examples in Form --> Displaying Form Submit Errors , but looking at the html of included classes I don't see several of the one's he uses (like theme empty.css, icons.css, extjs.ico, and Ext.us.form.XCheckbox.js). 我正在尝试在Form --> Displaying Form Submit Errors实现Saki的示例之一,但是在查看包含类的html时,我看不到他使用的其中几个(例如主题empty.css,icons.css, extjs.ico和Ext.us.form.XCheckbox.js)。 I'm using Ext-JS 3.3.0.... could anyone link me to a source that shows how to utilize QuickTips for 3.3.0? 我正在使用Ext-JS 3.3.0 ....有人可以将我链接到显示如何在3.3.0中使用QuickTips的源吗? Or a way to make sure I have all the required files? 还是一种确保我拥有所有必需文件的方法?

Currently when I try to do msgTarget: 'side' the red explanation point isn't appearing like it should. 目前,当我尝试执行msgTarget:'side'时,红色的解释点似乎不应该出现。 Also the actual tooltip that appears isn't styled correctly. 另外,出现的实际工具提示的样式不正确。 See below (I have the msgTarget: 'side' commented out for this so you can see the tooltip). 参见下文(为此,我对msgTarget:'side'进行了注释,因此您可以看到工具提示)。

This is what my JSP's Head looks like, I can't tell if its a style sheet problem or that I am not refreshing something correctly. 这就是我的JSP负责人的样子,我无法确定它是否是样式表问题或我没有正确刷新某些内容。

    <!-- Include Ext and app-specific scripts: -->
    <script type="text/javascript" src="../js/ext-base.js"></script>
    <script type="text/javascript" src="../js/ext-all-debug.js"></script>
    <script type="text/javascript" src="../examples/shared/examples.js"></script>
    <script type="text/javascript" src="../examples/form/states.js"></script>
    <script type="text/javascript" src="../examples/ux/MultiSelect.js"></script>
    <script type="text/javascript" src="../examples/ux/ItemSelector.js"></script>
    <script type="text/javascript" src="../examples/ux/fileuploadfield/FileUploadField.js"></script>
    <script type='text/javascript' src="../examples/ux/RowExpander.js"></script>
    <script type="text/javascript" src="../examples/ux/CheckColumn.js"></script>
    <script type='text/javascript' src="../js/TreeGrid.js"></script>
    <script type='text/javascript' src="../js/Exporter-all.js"></script>

    <!-- My JS's: -->
    <script type="text/javascript" src="../js/comm.js"></script>
    <script type="text/javascript" src="../js/commStore.js"></script>

    <!-- Include Ext Stylesheets here: -->
    <link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css"/>
    <link rel='stylesheet' type="text/css" href="../examples/ux/css/MultiSelect.css">
    <link rel="stylesheet" type="text/css" href="../examples/ux/fileuploadfield/css/fileuploadfield.css"/>
    <link rel="stylesheet" type="text/css" href="../examples/grid/grid-examples.css" />
    <link rel="stylesheet" type="text/css" href="../css/TreeGrid.css" />  
    <link rel="stylesheet" type="text/css" href="../css/TreeGridLevels.css" />  
    <link rel="stylesheet" type="text/css" title="tundra"     href="../css/xtheme-tundra.css" />

    <!-- My StyleSheet -->
    <link rel="stylesheet" type="text/css" title="commTool" href="../css/CommTool.css" />

在此处输入图片说明

Definitely, some CSS is interfering with your tooltip's style. 确实,某些CSS会干扰您的工具提示的样式。 In your code, you are using lot of css & js that are not part of the framework. 在您的代码中,您使用了很多CSS和js,而这些都不是框架的一部分。 Do you need them? 需要吗 Did you try running your application with only the default ExtJS stylesheets? 您是否尝试仅使用默认的ExtJS样式表运行应用程序? Try running your application using ext-all.css alone. 尝试单独使用ext-all.css运行您的应用程序。

xtheme-tundra.css自定义xtheme-tundra.css主题样式表,看看是否有帮助

不确定如何结束问题,但是我已经以一种不同的方式重新提出了自己的想法 ,我认为这对大家都更有意义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM