jquery+easyui培训文档 联系客服

发布时间 : 星期日 文章jquery+easyui培训文档更新完毕开始阅读d8c56b16866fb84ae45c8db7

jquery easyui中文培训文档

loadMsg pagination rownumbers singleSelect fit pageNumber pageSize pageList queryParams sortName sortOrder editors 字符串 布尔 布尔 布尔 布尔 数字 数字 数组 对象 字符串 字符串 对象 当远程加载数据时,现实的等待信息提示 是否显示底部分页工具栏 是否显示行号列 是否允许只选择一行 是否允许表格自动缩放,以适应父容器 初始化页码 初始化页面大小 初始化页面大小选择清单 当请求远程数据时,发送的额外的参数 定义哪一列可以排序 定义列排序的方式,递增(asc)或递减(desc) 定义当编辑某行数据时的编辑器 Processing, wait … false false false false 1 10 please [10,20,30,40,50] {} null asc predefined editors 14.3 Column参数

Name title Type 字符串 字符串 数字 数字 数字 字符串 布尔 布尔 函数 Description 列标题文字 Default undefined field width rowspan colspan align sortable checkbox formatter 列字段名称 列宽度 该列占几行单元格 该列占几列单元格 数据对其方式,可选值有left,right,center 是否允许该列排序 是否显示选择框 包含三个参数: undefined undefined undefined undefined undefined undefined undefined undefined 45

jquery easyui中文培训文档

value: the field value. rowData: the row record data rowIndex: the row index. Indicate the edit type. When string indicates the edit type, when object contains two properties: type: string, the edit type, possible type is: text,textarea,checkbox,numberbox,validatebox,datebox,combobox,combotree. options: object, the editor options corresponding to the edit type. editor string,object undefined 14.4 事件

Name onLoadSuccess onLoadError onBeforeLoad Parameters data none data Description 远程数据加载成功时触发 远程数据加载失败时触发 请求发出去,加载数据前触发。如果返回false,加载数据动作则退出 当用户点击某行时触发, the parameters contains: rowIndex: the clicked row index, start with 0 rowData: the record corresponding to the clicked row 当用户双击某行时触发, the parameters contains: rowIndex: the clicked row index, start with 0 rowData: the record corresponding to the clicked row 当用户排序某列时触发, the parameters contains: sort: the sort column field name order: the sort column order 当用户选择某行时触发, the parameters contains: rowIndex: the selected row index, start with 0 rowData: the record corresponding to the selected row 当用户取消选择某行时触发, the parameters contains: rowIndex: the unselected row index, start with 0 rowData: the record corresponding to the unselected row 46

onClickRow rowIndex, rowData onDblClickRow rowIndex, rowData onSortColumn sort, order onSelect rowIndex, rowData onUnselect rowIndex, rowData jquery easyui中文培训文档

onBeforeEdit rowIndex, rowData 当用户开始编辑某行时触发, the parameters contains: rowIndex: the editing row index, start with 0 rowData: the record corresponding to the editing row 当用户完成编辑某行时触发, the parameters contains: rowIndex: the editing row index, start with 0 rowData: the record corresponding to the editing row changes: the changed field/value pairs 当用户退出编辑某行时触发, the parameters contains: rowIndex: the editing row index, start with 0 rowData: the record corresponding to the editing row onAfterEdit rowIndex, rowData, changes onCancelEdit rowIndex, rowData 14.5 方法

Name options getPager resize reload fixColumnSize loadData getData getRows getSelected getSelections clearSelections selectAll selectRow selectRecord Parameter none none none param none param none none none none none none index idValue Description 返回所有参数的对象 返回分页对象 调整表格大小 重新加载行 固定列的大小 加载本地数据,旧行将被删除 返回已加载的数据 返回当前页的行数 返回第一次选择的行记录 返回所有选定行,如果没选择记录,则返回空数组 取消所有选择 选择当前页所有行 选择某行,行索引以0开始 通过id值选择一行 47

jquery easyui中文培训文档

unselectRow beginEdit endEdit cancelEdit refreshRow appendRow deleteRow index index index index index row index 取消选择某行 开始编辑某行 结束编辑某行 退出编辑某行 刷新一行的数据 添加新行 删除一行 获得改变行以来最后犯。类型参数表明哪个类型改变行,可能值:插入,删除,使。。。现代化,等等。当类型参数不是分配,返回所有改变行。 Commits all the changes data since it was loaded or since the last time acceptChanges was called. 回滚所有变动基准从它时候开始被创建,或以来最后一次所以不用被呼吁。 getChanges type acceptChanges none rejectChanges none

48