Search
69 results 1-10
Reference
keys
› Enable and configure the KeyTable extension for DataTablesbeing movable with arrow keys, tab, home, end andkeys.keys
› Limit the keys that KeyTable will listen for and take action onfine control over which keys KeyTable will listen for. The keys.enable() and keys.disable() methods can be usedkeys.editor
› Attach an Editor instance for Excel like editingclosely as possible (arrow keys for example will moveselect.keys
› Keyboard navigation and selection of rows in the tableThis options provides the end user with the ability to navigate through and select rows from the DataTable via a keyboard, rather than depending on a mouse / touch. When enabled keyboard navigation will be enabled acting as if each row in the table is part of a list (e.g. think of a multi select list). Keyboard navigation rules are: Tab - act as if rows are part of the tab flow of the document (i.e. a form element). Down key - move to the next row, or if at the end of the current page, move to the next page and focus on the first row. Up key - move to the previous row, or if at the start of the current page, move to the previous page and select the last row. Space - toggle row selection. Please note that Select offers another form of row selection via keyboard through its checkbox renderer. The select.keys option should not be used at the same time as checkboxes as you would end up with both the row and the checkbox being navigable. Additionally, DataTables has a KeyTable extension for cell navigation by keyboard. This option is not compatible with KeyTable, again because of a conflict - rows and cells both being selectable. Select the correct form of keyboard navigation for your needed. This option is particularly useful if you which to treat your DataTable as a list.select.keys()
› Get / set Select's keyboard navigation stateDynamic control for the select.keys option. This method can be used to dynamically enable, or disable, the keyboard navigation and row selection control provided by Select.keys.tabIndex
› Set the table's tab index for when it will receive focusBrowsers have complex built in algorithms that define which element will receive focus when the tab key is pressed by the end user. The tab index attribute for HTML elements can be used to control this behaviour, forcing focus to follow a route defined by the developer rather than the end user. This option can be used to define the tab index of the KeyTable enhanced DataTable in the document's tab flow.keys.focus
› Cell to receive initial focus in the tableThis option can be used to define what cell in the table (if any) will automatically receive focus when the table is initialised with KeyTable enabled. The value of this option will be over-ridden if state saving is enabled in DataTables (stateSave) and there is a saved focused cell - i.e. the state saved focused cell will instead receive the focus.keys.editOnFocus
› Control if editing should be activated immediately upon focusWhen used with Editor (keys.editor), inline editing will notkeys.columns
› Select the columns that can gain focusWhen working with complex tables it is not uncommon to have certain columns that you might not wish to allow spreadsheet like navigation on (for example a checkbox column for row selection or a column with editing action buttons). This option can be used to define which columns can receive focus. If a column cannot receive focus KeyTable will skip over it as if it was not present. Please note that only visible cells can receive focus, so the columns defined by this option are automatically merged with the visible columns in the table. Non-visible columns will not receive focus.keys.clipboardOrthogonal
› Set the orthogonal data to copy to clipboardDataTables' support for orthogonal data allows a single cell to report different data for the different uses that DataTables has for the data. This option provides the ability to control the orthogonal data point that is used for the copy to clipboard action of KeyTables. Note that this effects the copy clipboard action only. The paste command will write to the raw data for the cell.
Forum
- 24th Apr 2020Limitante en columnas TD y FiltroEh descargado una plantilla de Boostrap, al modificar una
- 25th May 2023ayuda con exportar datatable a excelpara exportar el contenido de mi datatable en mi plantilla creada en excel
- 19th Apr 2025Incorrect column countfecha = moment(fecha).format('D [de] MMMM [de] YYYY'); this.downloadXls("tblAnswerGradersAvailable", `codificaciones_disponibles_${fecha}.xlsx`) }} type="button" className="btn btn-default pull-right" >Descargar plantilla </button> </div> </div> </div>
- 14th Jun 2021Plantilla aplicada no afecta todas las columnas al exportar a excel?Estimados comentos que esto se resolvió con una nueva versión de las siguiente librerías: <script src="https://cdn.jsdelivr.net/npm/datatables-buttons-excel-styles@1.1.2/js/buttons.html5.styles.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/datatables-buttons-excel-styles@1.1.2/js/buttons.html5.styles.templates.min.js"></script>