• To bind events to the newly created table, see the Adding event bindings section below.
  • Build a table starting with an assortment of data types ( array, text (CSV, HTML) or object (json) ).
  • This widget isn't really a widget because it is run and does it's processing before tablesorter has initialized; but the options for it are contained within the tablesorter widgetOptions.
  • Using the core build options:
    • The build_type tells the widget which type of data processing to use on the data.
    • The build_source points the widget to the data source.
    • Once the data is obtained from the build_source, you can do whatever processing that needs to be done on it using the build_processing option.
      • For example, if the table data is within a larger JSON, you can just return that portion of the JSON to the widget: build_processing : function(data, wo) { return data.all_info_tables.table_of_contents; }
      • Anoter example is to use the processing option to split a string into an array (see the "Array (from string w/processing)" section below)
  • An extra option named build_numbers has been included:
    • This option only applies to array and csv source table builds.
    • Set the build_numbers.addColumn option to true (or a string with the column name "#") to add a row number column on the far left of the table.
    • Set the build_numbers.sortable option to true to make the added number column sortable. This option only applies if the addColumn option is true.