标签: extjs4

与Extjs的字符串比较

我有一个具有该值的字符串Sam, Mathews, Perry.我需要知道如何查看PerryString中是否存在字符串.我怎样才能做到这一点;

我的代码如下,但不幸的是它不起作用.我需要帮助来解决这个问题.

var stringNames= "Sam, Mathews, Perry";

if (stringNames.contains ('Perry')) {
 // 
console.log('Perry found');

}
Run Code Online (Sandbox Code Playgroud)

extjs extjs4 extjs4.1

0
推荐指数
1
解决办法
6750
查看次数

单击不同按钮 extjs4.1 时触发文件选择

如何使用不同的按钮或组件打开文件字段的文件选择对话框?我尝试在互联网上搜索,但找不到解决方案。我想要做的是在单击面板时打开文件选择对话框。

javascript extjs extjs4 extjs4.1

0
推荐指数
1
解决办法
5143
查看次数

将ExtJS3迁移到ExtJS4

我是ExtJS的新手.由于客户端需要ExtJS3代码,我们需要将其转换为ExtJS4.我正在尝试很多,但它没有显示结果.

Html代码:

<html>
<head>
<title>Search Window With Ext JS 4</title>
<link rel="stylesheet" type="text/css" href="ext-4.0.1/resources/css/ext-all.css"/>
<script type="text/javascript" src="ext-4.0.1/ext-all.js"></script>
<script type="text/javascript" src="ext-4.0.1/bootstrap.js"></script>

<script type="text/javascript" src="searchwindow.js"></script>
<script type="text/javascript" src="SearchRegionPan.js"></script>

<body>
<div id="panel" style="padding:10px"></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

ExtJS代码:searchwindow.js:

Ext.require(['*']);

 Ext.onReady(function(){

     Ext.QuickTips.init();

var SearchRegionPan = new SearchRegionPan();

//************************* SEARCH TAB **************************************
var searchTab = {
                    id          :   'searchTab',
                    border      :   false,
                    //autoHeight    :   true,
                    //title     :   searchTitle,
                    items       :   [SearchRegionPan,
                      {
                        xtype:'label',
                                    text:'',
                                    style:'padding:2px 1px 0 40px;font-weight: bold;color: red;text-align: center;',
                                    itemId  :   'totallabel'
                                    }],
                    title       : …
Run Code Online (Sandbox Code Playgroud)

extjs extjs4 extjs-mvc extjs3

-1
推荐指数
1
解决办法
2402
查看次数

如何在extjs 4的网格面板中单击按钮打开新的浏览器窗口

我是Extjs的新手.当我点击Extjs 4中网格面板中的按钮时,我试图在新的浏览器窗口中打开一个日志文件.

我可以下载该文件.但我不想下载它,我希望当我点击该按钮时它应该在新的浏览器窗口中打开.

我这样做:

{
    xtype: 'gridpanel',
    id: 'logResultGrid',
    margin: '40 0 10 20',

    width: 439,

    title: 'Logs Result:',
    store: 'LogsStore',

    viewConfig: {
        id: 'logsGrid'
    },

    columns: [{
        xtype: 'gridcolumn',
        renderer: function(value, metaData, record, rowIndex, colIndex, store, view) {
            var directoryName = Ext.getCmp('logsJobName').getValue();
            return '<a href="http://localhost:40889/Snowy/fileDownload/download.htmreportName=' + value + '&directoryName=' + directoryName + '">' + value + '</a>';
        },
        width: 297,
        dataIndex: 'fileName',
        text: 'Log Name'
    }, {
        xtype: 'actioncolumn',
        width: 116,
        items: [{
            handler: function(view, …
Run Code Online (Sandbox Code Playgroud)

extjs extjs4

-1
推荐指数
1
解决办法
6695
查看次数

标签 统计

extjs ×4

extjs4 ×4

extjs4.1 ×2

extjs-mvc ×1

extjs3 ×1

javascript ×1