### 常用控制參數
**說明:**
~~~
/**
* 是否顯示右鍵菜單,如果為flase,則右鍵菜單失效
*
* @type Boolean
*/
isRightMenu : true,
/**
* 右鍵菜單默認寬度
*/
menuWidth : 120,
/**
* 是否顯示工具欄
*
* @type Boolean
*/
isToolBar : true,
/**
* 是否顯示打印相關按鈕/菜單
*
* @type Boolean
*/
isPrintAction : false,
/**
* 是否顯示添加按鈕/菜單
*
* @type Boolean
*/
isAddAction : true,
/**
* 是否顯示查看按鈕/菜單
*
* @type Boolean
*/
isViewAction : true,
/**
* 是否顯示修改按鈕/菜單
*
* @type Boolean
*/
isEditAction : true,
/**
* 是否顯示刪除按鈕/菜單
*
* @type Boolean
*/
isDelAction : true,
/**
* 是否顯示高級搜索按鈕(待擴展)
*
* @type Boolean
*/
isAdvanceSearch : true,
/**
* 是否顯示導出excel按鈕
*
* @type Boolean
*/
isToExcel : false,
/**
* 是否顯示數據操作按鈕
*/
isOpButton : true,
/**
* 表單默認寬度
*/
formWidth : 800,
/**
* 表單默認寬度
*/
formHeight : 400,
/**
* 是否即時搜索
*/
imSearch : false,
/**
* 默認顯示的頁碼
*/
newp : 1,
/**
* 是否顯示完全匹配
*/
isEquSearch : true,
/**
* 表數據默認居左
*/
bodyAlign : 'left'
/**
* 表格自定制編碼,如myCustomerGrid 此參數一定要保證唯一性
*/
customCode : '',
/**
* 是否顯示checkbox
*/
showcheckbox : true,
~~~
**例:**
~~~
$("#contractGrid").yxgrid({
model : 'contract_contract_contract',
action : 'conPageJson',
title : '合同主表',
param : param,
leftLayout : true,
title : '合同信息',
isViewAction : false,
isEditAction : false,
isDelAction : false,
// showcheckbox : false,
isAddAction : false,
customCode : 'contractInfo',
...
...
~~~
- 架構
- 基礎框架文檔
- base/action(C層基類)
- protected 類定義
- __construct構造函數
- c_list
- c_index
- c_page
- c_pageJson
- c_listJson
- c_getByAjax
- c_getCountByName
- c_toAdd
- c_add
- c_init
- c_edit
- c_deletes
- c_ajaxdeletes
- c_saveBatch
- c_checkRepeat
- getDatadicts
- showDatadicts
- getDataNameByCode
- assign
- display
- view
- assignFunc
- model/base(M層基類)
- protected類定義(model)
- __construct
- find
- get_table_fields
- findAll
- findSql
- create
- delete
- findBy
- updateField
- query
- findCount
- update
- filterFunc
- filterField
- filterWithoutField
- filterCustom
- createBatch
- pageBySql
- listBySql
- pageBySqlId
- deletes
- 事務控制
- 獲取對象數組
- addBatch_d
- add_d
- edit_d
- isRepeat
- 列表組件文檔
- 基礎表格
- 數據獲取
- 表格數據顯示
- 常用控制參數
- 表格右鍵擴展
- 表格擴展按鈕
- 快速搜索
- 高級搜索(自定義視圖)
- 表格注冊事件
- 主從表格
- 可編輯表格
- 模塊開發
- 開發案例
- 開發準則