WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/src/jquery.propertygrid.js

(开头部分) 16KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * jQuery EasyUI 1.4.4
 *
 * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
 *
 * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
 * To use it on other terms please contact us: info@jeasyui.com
 *
 */
/**
 * propertygrid - jQuery EasyUI
 *
 * Dependencies:
 * 	 datagrid
 *
 */
(function ($) {
    var currTarget;
    $(document).unbind('.propertygrid').bind('mousedown.propertygrid', function (e) {
        var p = $(e.target).closest('div.datagrid-view,div.combo-panel');
        if (p.length) { return; }
        stopEditing(currTarget);
        currTarget = undefined;
    });

    function buildGrid(target) {
        var state = $.data(target, 'propertygrid');
        var opts = $.data(target, 'propertygrid').options;
        $(target).datagrid($.extend({}, opts, {
            cls: 'propertygrid',
            view: (opts.showGroup ? opts.groupView : opts.view),
            onBeforeEdit: function (index, row) {
                if (opts.onBeforeEdit.call(target, index, row) == false) { return false; }
                var dg = $(this);
                var row = dg.datagrid('getRows')[index];
                var col = dg.datagrid('getColumnOption', 'value');
                col.editor = row.editor;
            },
            onClickCell: function (index, field, value) {
                if (currTarget != this) {
                    stopEditing(currTarget);
                    currTarget = this;
                }
                if (opts.editIndex != index) {
                    stopEditing(currTarget);
                    $(this).datagrid('beginEdit', index);
                    var ed = $(this).datagrid('getEditor', { index: index, field: field });
                    if (!ed) {
                        ed = $(this).datagrid('getEditor', { index: index, field: 'value' });
                    }
                    if (ed) {
                        var t = $(ed.target);
                        var input = t.data('textbox') ? t.textbox('textbox') : t;
                        input.focus();
                        opts.editIndex = index;
                    }
                }
                opts.onClickCell.call(target, index, field, value);
            },
            loadFilter: function (data) {
后面还有 359 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。