{hero}

$.fn.dataTable.Editor.pairs()

Since: Editor 1.4

Obtain label / value paired data from objects and arrays.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

Often when working with forms you will encounter selectable data where the user has to select one or more options from a list (for example select, checkbox and radio input types). This usually takes the form of a label / value pair set of data where the user sees the label, but the server sees the value in the submitted data (the label and value might also be the same as each other!).

This method is provided for field type plug-in authors to provide a common method to get these label / value pairs of data. It is used internally by Editor for the select, checkbox and radio options, but it can also be used by external plug-ins and applications as required.