OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
This file is part of OpenMediaVault.
OpenMediaVault is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
OpenMediaVault is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenMediaVault. If not, see http://www.gnu.org/licenses/.
OMV.grid.Panel An enhanced grid panel. This grid provides 'Add', 'Edit' and 'Delete' buttons in the toolbar by default. The basic delete functionality is also implemented, simply overwrite the 'doDeletion' and 'afterDeletion' functions to implement fit your requirements. To implement the 'Add' and 'Edit' functionality overwrite the 'onAdd' and 'onEdit' callback functions. A paging toolbar which is displayed at the bottom of the grid can be displayed also. It is also possible to reload the grid automatically at a given interval.
hideTopToolbar | TRUE to hide the toolbar at the top of the grid. Defaults to FALSE. |
hidePagingToolbar | TRUE to hide the paging toolbar at the bottom of the grid. Defaults to TRUE. |
hideAddButton | Hide the 'Add' button in the top toolbar. Defaults to FALSE. |
hideEditButton | Hide the 'Edit' button in the top toolbar. Defaults to FALSE. |
hideDeleteButton | Hide the 'Delete' button in the top toolbar. Defaults to FALSE. |
hideUpButton | Hide the 'Up' button in the top toolbar. Defaults to TRUE. |
hideDownButton | Hide the 'Down' button in the top toolbar. Defaults to TRUE. |
hideApplyButton | Hide the 'Apply' button in the top toolbar. Defaults to TRUE. |
hideRefreshButton | Hide the 'Refresh' button in the top toolbar. Defaults to TRUE. |
addButtonText | The button text. Defaults to 'Add'. |
editButtonText | The button text. Defaults to 'Edit'. |
deleteButtonText | The button text. Defaults to 'Delete'. |
upButtonText | The button text. Defaults to 'Up'. |
downButtonText | The button text. Defaults to 'Down'. |
applyButtonText | The button text. Defaults to 'Save'. |
refreshButtonText | The button text. Defaults to 'Refresh'. |
deletionConfirmRequired | Set to TRUE to force the user to confirm the deletion request. Defaults to TRUE. |
deletionWaitMsg | The message displayed during the deletion process. |
mode | The mode how to retrieve the data displayed in the grid panel. This can be 'local' or 'remote' which means the data is requested via RPC. Defaults to 'remote'. |
rememberSelected | TRUE to reselect the previous selected rows after the grid content has been reloaded/refreshed. Defaults to FALSE. |