Skip to content

v0.4.0

Compare
Choose a tag to compare
@kjhangiani kjhangiani released this 25 Mar 02:24
· 1 commit to master since this release

v0.4.0

Updated Metadata plugin with cleaner API, extracted filtering functions into their own separate plugin datatables-improved-filters

New API calls:

Metadata

Store column specific metadata in the datatable. This is used by the filtering functions below, but can also be used to store arbitrary data related to the column as required. This data is state saved if state saving is enabled.

  • .column().meta() // retrieve meta information for a column
  • .column().meta(key) // retrieve meta information for a column, under the key key
  • .column().meta.replace(data) // set the entire column meta to the object passed in as data
  • .column().meta.clear() // remove all metadata for this column
  • .column().meta.set(key, data) // set the key property in the column metadata object to data
  • .column().meta.merge(key, data) // merge the key property in the column metadata object with the object passed in to data
  • .column().meta.remove(key) // remove all metadata under key