Major changes to the structure of pages to utilize the flex layout system.
This commit is contained in:
@@ -28,6 +28,8 @@ var LinkedTable;
|
||||
//Notify the handler of the new selection, and the selection's model.
|
||||
_this.options.selectionChanged(_this.$selectedRow, _this.$selectedRow ? _this.$selectedRow.data(_this.options.modelPropName) : null);
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
//Takes a callback function with three parameters:
|
||||
@@ -143,6 +145,7 @@ var LinkedTable;
|
||||
this.updateCell($cell, attribute, model, supportingData);
|
||||
//Add the cell to the row.
|
||||
$cell.appendTo(row);
|
||||
$cell.disableSelection();
|
||||
}
|
||||
|
||||
if(this.options.postAddRowHandler) {
|
||||
@@ -193,6 +196,9 @@ var LinkedTable;
|
||||
selectionCSS: 'selected',
|
||||
selection: 'row', //Currently only row is supported.
|
||||
selectionChanged: undefined, //An optional handler called when the selection changes, and passed the selected element (jquery wrapper for the table row 'tr' HTML element currently selected), and the model associated with the row.
|
||||
selectionOpened: undefined, //An optional handler called when the user double clicks a row.
|
||||
keyDownHandler: undefined, //An optional handler called when a key is pressed on a row.
|
||||
keyUpHandler: undefined, //An optional handler called when a key is pressed on a row.
|
||||
supportingData: [], //An array of objects, one for each collection of supporting data. Each object must have a 'name', 'url', and optional 'parameters'. The url and parameters are used the same as for the primary query. The name is used to store the results for use in rendering the data. Optional 'postProcess' attribute can be a function that takes the data and returns a modified set of data.
|
||||
cellDataHandlers: {}, //An object containing a function for each attribute, where the attribute is the table header object key, and the function is called to convert the primary data object into a cell value. The function will be passed the jquery table data wrapper object for the cell, the primary data object for the row, and the object containing the supporting data returned from running the supporting data queries.
|
||||
postAddRowHandler: null, //Optional function that is passed the jquery table row and the data object sent by the server for that row. Allows post processing of the row prior to display.
|
||||
|
||||
Reference in New Issue
Block a user