91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

[ExtJs4.0]當鼠標停留在某行的時候顯示此物品縮略圖

發布時間:2020-06-21 14:48:25 來源:網絡 閱讀:841 作者:zj164937924 欄目:編程語言

控制器代碼:

  [ExtjsAction("view")]

        public ActionResult GetById()

        {

            string picId = GetParameter("Id");

            foreach (var p_w_picpath in picInfo.Images)

            {

                p_w_picpath.PicAddress = "http://localhost:8088/pic/Image/" + p_w_picpath.PicAddress;

            }

            return this.JsonFormat(new ExtjsFormInfo(picInfo));

        }

js頁面代碼:

var panel = Ext.create('Ext.Panel', {

            bodyStyle: 'padding-top:5px 5px 0;background-color:#DFE9F6',

            layout: {

                type: 'table',

                columns: 3

            },

            frame: true,

            name: 'picPanle',

            id: 'p_w_picpaths-view',

            collapsible: true,

            width: 120,

            title: '圖片信息',

            items: Ext.create('Ext.view.View', {

                store: {

                    model: 'OOO.model.picPackage.Picture',

                    proxy: {

                        type: 'memory',

                        reader: {

                            type: 'json'

                        }

                    }

                },

                tpl: [

                '<tpl for=".">',

                    '<div class="thumb-wrap" id="{PicName}">',

                    '<div class="thumb"><img src="{PicAddress}" title="{PicName}"/></a></div>',

                    '<span class="x-editable">{PicName}</span></div>',

                '</tpl>',

                '<div class="x-clear"></div>'

            ],

                multiSelect: true,

                height: 310,

                trackOver: true,

                overItemCls: 'x-item-over',

                itemSelector: 'div.thumb-wrap',

                emptyText: 'No p_w_picpaths to display'

            })

        });

        var detaileForm = {

            xtype: 'fieldset',

            layout: 'column',

            width: 500,

            height: 400,

            defaultType: 'textfield',

            items: [

                {

                    xtype: 'container',

                    columnWidth: .6,

                    layout: 'anchor',

                    items: stationColumn

                }, {

                    xtype: 'container',

                    columnWidth: .4,

                    layout: 'anchor',

                    items: panel

                }]

        };

extjs model層代碼:

Ext.define('OOOmodel.Picture', {

    extend: 'Ext.data.Model',

    fields: ['PicAddress', 'PicName']

});

 

下面的是另外的

initComponent: function () {

        this.columns = [{

            xtype: 'gridcolumn',

            header: 'ID',

            dataIndex: 'Id',

            width: 100,

            menuDisabled: true,

            sortable: true,

            renderer: function (value, metaData, record, rowIndex, columnIndex, store) {

                var url = 'http://localhost:8088/Image/';

                var fileName = store.getAt(rowIndex).get('PictureName');

                var img = "<img src='" + url + fileName + "' width='300' height='200'>";

                metaData.tdAttr = 'data-qtip="' + img + '"';

                return value;

            }

        }];

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

得荣县| 德兴市| 广东省| 台北市| 高唐县| 古丈县| 太仓市| 黑山县| 宁晋县| 永胜县| 仪征市| 榆林市| 五河县| 白水县| 上饶县| 东乡族自治县| 迁西县| 邵阳市| 阳原县| 建阳市| 钦州市| 楚雄市| 图木舒克市| 公主岭市| 长沙市| 文昌市| 江孜县| 林芝县| 太康县| 丹阳市| 阜平县| 巧家县| 乌什县| 柳江县| 芜湖县| 聂荣县| 上杭县| 奎屯市| 衡南县| 阿拉尔市| 南岸区|