OptionalaccessorOptionalaccessoronly called when data is being copied into the clipboard.
OptionalaccessorAdditional parameters you can pass to the accessorClipboard.
Optionalaccessoronly called when data is being converted into a downloadable file.
Optionalaccessoradditional parameters you can pass to the accessorDownload.
OptionalaccessorYou can use the accessorHtmlOutput and accessorHtmlOutputParams options on a column definition to alter the value of data in a column before the html is generated.
OptionalaccessorOptionalaccessorEach accessor function has its own matching params option, for example accessorDownload has accessorDownloadParams.
OptionalaccessorYou can use the accessorPrint and accessorPrintParams options on a column definition to alter the value of data in a column before it is printed.
OptionalaccessorOptionalbottomOptionalbottomOptionalbottomadditional parameters you can pass to the bottomCalcFormatter function.
OptionalbottomOptionalcellcallback for when user clicks on a cell in this column.
Optionalcellcallback for when user right clicks on a cell in this column.
Optionalcellcallback for when user double clicks on a cell in this column.
Optionalcellcallback for when user double taps on a cell in this column, triggered in touch displays when a user taps the same cell twice in under 300ms.
Optionalcellcallback for when an edit on a cell in this column is aborted by the user.
Optionalcellcallback for when a cell in this column has been edited by the user.
Optionalcellcallback for when a cell in this column is being edited by the user.
OptionalcellOptionalcellcallback for when the mouse pointer enters a cell
Optionalcellcallback for when the mouse pointer leaves a cell
Optionalcellcallback for when the mouse pointer moves over a cell.
Optionalcellcallback for when the mouse pointer enters a cell or one of its child elements
Optionalcellcallback for when the mouse pointer enters a cell or one of its child elements
OptionalcellOptionalcellPopups work in a similar way to menus, but instead of only displaying lists of menu items they allow you to fill them with any custom content you like, text, input elements, forms, anything you fancy.
Optionalcellcallback for when user taps on a cell in this column, triggered in touch displays.
Optionalcellcallback for when user taps and holds on a cell in this column, triggered in touch displays when a user taps and holds the same cell for 1 second.
OptionalclickOptionalclipboardIf you don't want to show a particular column in the clipboard output you can set the clipboard property in its column definition object to false.
OptionalcolumnsA column can be a "group" of columns (Example: group header column -> Measurements, grouped column -> Length, Width, Height)
OptionalcontextYou can add a right click context menu to any columns cells by passing an array of menu items to the contextMenu option in that columns definition.
Optionalcsssets css classes on header and cells in this column. (value should be a string containing space separated class names)
OptionaldblOptionaldblOptionaldownloadshow or hide column in downloaded data
OptionaleditableThere are some circumstances where you may want to block edit-ability of a cell for one reason or another. To meet this need you can use the editable option. This lets you set a callback that is executed before the editor is built, if this callback returns true the editor is added, if it returns false the edit is aborted and the cell remains a non editable cell. The function is passed one parameter, the CellComponent of the cell about to be edited. You can also pass a boolean value instead of a function to this property.
Optionaleditableallows the user to edit the header titles
OptionaleditorWhen a user clicks on an editable column the will be able to edit the value for that cell.
By default Tabulator will use an editor that matches the current formatter for that cell. if you wish to specify a specific editor, you can set them per column using the editor option in the column definition. Passing a value of true to this option will result in Tabulator applying the editor that best matches the columns formatter, if present.
You can pass an optional additional parameter with the editor, editorParams that should contain an object with additional information for configuring the editor.
OptionaleditorThe value to set in the cell after the user has finished editing the cell.
OptionaleditorThe function to determine if the value is empty.
Optionaleditoradditional parameters you can pass to the editor.
Optionalfieldfield - Required (not required in icon/button columns) this is the key for this column in the data array.
OptionalformatterSet how you would like the data to be formatted.
OptionalformatterWhen copying to the clipboard you may want to apply a different formatter from the one usually used to format the cell, you can do this using the formatterClipboard column definition option. You can use the formatterClipboardParams to pass in any additional params to the formatter.
OptionalformatterOptionalformatterWhen the getHtml function is called you may want to apply a different formatter from the one usually used to format the cell, you can do this using the formatterHtmlOutput column definition option.
OptionalformatterOptionalformatterYou can pass an optional additional parameter with the formatter, formatterParams that should contain an object with additional information for configuring the formatter.
OptionalformatterWhen printing you may want to apply a different formatter from the one usually used to format the cell, you can do this using the formatterPrint column definition option. You can use the formatterPrintParams to pass in any additional params to the formatter.
OptionalformatterOptionalfrozenYou can freeze the position of columns on the left and right of the table using the frozen property in the column definition array. This will keep the column still when the table is scrolled horizontally.
OptionalheaderCallback for when user clicks on the header for this column.
OptionalheaderCallback for when user right clicks on the header for this column.
OptionalheaderYou can add a right click context menu to any column by passing an array of menu items to the headerContextMenu option in that columns definition.
OptionalheaderCallback for when user double clicks on the header for this column.
OptionalheaderOptionalheaderOptionalheadercallback for when user double taps on a header for this column, triggered in touch displays when a user taps the same header twice in under 300ms
Optionalheaderfiltering of columns from elements in the header.
Optionalheaderfunction to check when the header filter is empty
OptionalheaderBy default Tabulator will try and match the comparison type to the type of element used for the header filter.
Standard input elements will use the "like" filter, this allows for the matches to be displayed as the user types.
For all other element types (select boxes, check boxes, input elements of type number) an "=" filter type is used.
If you want to specify the type of filter used you can pass it to the headerFilterFunc option in the column definition object. This will take any of the standard filters outlined above or a custom function
Optionalheaderadditional parameters object passed to the headerFilterFunc function.
Optionalheaderdisable live filtering of the table.
Optionalheaderadditional parameters you can pass to the header filter.
Optionalheaderplaceholder text for the header filter.
OptionalheaderOptionalheaderYou can add a menu to any column by passing an array of menu items to the headerMenu option in that columns definition.
OptionalheaderThe headerMenuIcon option will accept one of three types of value. You can pass in a string for the HTML contents of the button. Or you can pass the DOM node for the button. Though be careful not to pass the same node to multiple columns or you may run into issues. Or you can define a function that is called when the column header is rendered that should return either an HTML string or the contents of the element. This function is passed the column component as its first argument.
OptionalheaderOptionalheaderOptionalheaderBy default all columns in a table are sortable by clicking on the column header, if you want to disable this behavior, set the headerSort property to false in the column definition array:
Optionalheaderset the starting sort direction when a user first clicks on a header.
Optionalheaderallow tristate toggling of column header sort direction.
Optionalheadercallback for when user taps on a header for this column, triggered in touch displays.
Optionalheadercallback for when user taps and holds on a header for this column, triggered in touch displays when a user taps and holds the same header for 1 second.
Optionalheadersets the on hover tooltip for the column header* * The tooltip headerTooltip can take three different types of value
OptionalheaderChange the orientation of the column header to vertical* * The headerVertical property can take one of three values:
OptionalheaderOptionalhideWhen the getHtml function is called, hide the column from the output.
OptionalhozIf you want to set the horizontal alignment on a column by column basis,
OptionalhtmlShow/Hide a particular column in the HTML output.
OptionalmaxOptionalminsets the minimum width of this column, this should be set in pixels
OptionalmutatorMutators are used to alter data as it is parsed into For example if you wanted to convert a numeric column into a boolean based on its value, before the data is used to build the table.
You can set mutators on a per column basis using the mutator option in the column definition object.
You can pass an optional additional parameter with mutator, mutatorParams that should contain an object with additional information for configuring the mutator.
Optionalmutatoronly called when data is changed via a user editing a cell.
OptionalmutatorOptionalmutatoronly called when data is loaded via a command {eg. setData).
OptionalmutatorOptionalmutatoronly called when data is changed via a user editing a cell.
OptionalmutatorOptionalmutatorYou can pass an optional additional parameter with mutator, mutatorParams that should contain an object with additional information for configuring the mutator.
OptionalprintIf you don't want to show a particular column in the print table you can set the print property in its column definition object to false.
Optionalresizableset whether column can be resized by user dragging its edges
Optionalresponsivean integer to determine when the column should be hidden in responsive mode.
Optionalrowsets the column as a row handle, allowing it to be used to drag movable rows.
OptionalsorterBy default Tabulator will attempt to guess which sorter should be applied to a column based on the data contained in the first row. It can determine sorters for strings, numbers, alphanumeric sequences and booleans, anything else will be treated as a string. To specify a sorter to be used on a column use the sorter property in the columns definition object
You can pass an optional additional property with sorter, sorterParams that should contain an object with additional information for configuring the sorter
OptionalsorterIf you want to dynamically generate the sorterParams at the time the sort is called you can pass a function into the property that should return the params object.
title - Required This is the title that will be displayed in the header for this column.
OptionaltitleWhen copying to clipboard you may want to apply a different column header title from the one usually used in the table. You can now do this using the titleClipboard column definition option, which takes the same inputs as the standard title property.
Optionaltitleset custom title for column in download.
Optionaltitleformatter function for header title.
Optionaltitleadditional parameters you can pass to the header title formatter.
OptionaltitleWhen the getHtml function is called you may want to apply a different column header title from the one usually used in the table. You can now do this using the titleHtmlOutput column definition option, which takes the same inputs as the standard title property.
OptionaltitleWhen printing you may want to apply a different column header title from the one usually used in the table. You can now do this using the titlePrint column definition option, which takes the same inputs as the standard title property.
OptionaltooltipSets the on hover tooltip for each cell in this column * * The tooltip parameter can take three different types of value:
Optionaltopthe column calculation to be displayed at the top of this column(see Column Calculations for more details)
OptionaltopFormatter for the topCalc calculation cell.
Optionaltopadditional parameters you can pass to the topCalcFormatter function.
Optionaltopadditional parameters you can pass to the topCalc calculation function (see Column Calculations for more details)
OptionalvalidatorValidators are used to ensure that any user input into your editable cells matches your requirements.
Validators can be applied by using the validator property in a columns definition object (see Define Columns for more details).
Optionalvariablealter the row height to fit the contents of the cell instead of hiding overflow
OptionalvertIf you want to set the vertical alignment on a column by column basis
Optionalvisiblevisible - (boolean, default - true) determines if the column is visible. (see Column Visibility for more details
Optionalwidthsets the width of this column, this can be set in pixels or as a percentage of total table width (if not set the system will determine the best)
OptionalwidthThe widthGrow property should be used on columns without a width property set. The value is used to work out what fraction of the available will be allocated to the column. The value should be set to a number greater than 0, by default any columns with no width set have a widthGrow value of 1
OptionalwidthThe widthShrink property should be used on columns with a width property set. The value is used to work out how to shrink columns with a fixed width when the table is too narrow to fit in all the columns. The value should be set to a number greater than 0, by default columns with a width set have a widthShrink value of 0, meaning they will not be shrunk if the table gets too narrow, and may cause the horizontal scrollbar to appear.
Accessors are used to alter data as it is extracted from the table, through commands, the clipboard, or download.
You can set accessors on a per column basis using the accessor option in the column definition object.