Search
1553 results 821-830
Reference
$.fn.dataTable.Editor.safeId()› Create an easy to use DOM id from an input stringEditor field types will typically use the field's name to assign a unique id to the field's input element (or whatever element happens to be used for the field) as this can be useful if you wish to use jQuery to select specific elements. DOM ids can have any character in this as of HTML5 including .. While perfectly valid it can cause issues with using CSS selectors since the dot is a class name separator. Editor also uses the dot as an object separator just like Javascript and SQL. For example consider #myField.name - this is an id selector of #myField with a class of name. The dot can be escaped in the selector but this can make selectors look messy and is confusing for developers new to escaping selectors. As a result Editor provides this method for plug-in developers to create easy to use ("safe") ids for their input elements. The functionality of this method is simple to replace the dot with a dash (-).DataTable.fileSave()› Save a file that has been created on the client-sideButtons makes use of Eli Grey's outstanding FileSaver.js library in order to be able to provide its client-side file creation and download methods. This method exposes Button's built in FileSaver.js so you can use it in other applications, or for custom buttons. For full details of how to use FileSaver, please refer to the FileSaver.js documentation.DataTable.ext.errMode› Set how DataTables will report detected errorsIf DataTables encounters an error thatDataTable.util.unique()› Get all unique items from an arrayDataTables often needs to getDataTable.util.diacritics()› Normalise diacritic characters in a string.When searching in DataTables we provide the abilityDataTable.util.debounce()› Wait for a timeout before calling a functionThis is the method DataTables uses internally for the
Examples
- RowReorder › DataTables ScrollingThis example is used to show RowReorder's support for DataTables
scrollYfeature. As the dragged row approaches the boundary of the table, the table will start to scroll. - FixedHeader › Integration with other DataTables extensionsFixedHeader will work "out of the box" with most other DataTables extensions. The following examples show it being used with various other extensions.
- Editor › DataTables extensions integration examplesand options to your DataTables. This set of examples
- Editor › DataTable as a single selectsingle exception that a DataTable is used as the