In its simplest form, all you need to set in the options are the column titles and field names.
By default columns are resizable (using edge of column header) and sortable (as strings).
Tables will automatically resize to fit the data
By setting the fitColumns to true, the table will resize columns so that they fit perfectly inside the width of the container.
If a width is specified on any columns, where possible the columns will be set at this width and other columns will be resized around them. If there is not enough space to fit all the columns in, then all column widths are ignored and they are sized equally.
Using the editable setting on each column, you can make a user editable table.
Any time a cell is edited it triggers the rowEdit callback, to allow you to process any changes.
You ccan call the getData method to get an array of all of the tables data, including any edits
Sorting is enabled by default, and can be toggled on or off by column using the sortable option.
By default all columns are sorted as text, different sort functions can be set using the sorter option
You can define a custom sorter functions in the sorter option if you need bespoke sorting functionality.
Tabulator allows you to format your data in a wide variety of ways, so your tables can display information in a more graphical and clear layout.
you can set formatters on a per column basis using the formatter option in the column data.
Tabulator comes with a number of preconfigured formatters including:
You can define a custom formatter function in the formatter option if you need more bespoke formatter functionality
Data can be loaded into the table from a remote URL using a JSON formatted string.
If you always request the same URL for your data then you can set it in the ajaxURL option when you create your Tabulator
Click the button below to load sample data via AJAX (you will need PHP enabled on your webserver for this to work).
Tablulator allows you to add new rows, delete existing rows and cleat all table data with ease.
Tabulator features a range of callbacks to allow you to handle user interaction.
Tabulator has a range of additional options to help customise your table. A full list of these can be found in the GitHub readme.md file