Namespace: remove

Ancestry: Editor » .defaults » .i18n. » remove

DataTables Editor v1.2.4 documentation

Navigation

Hiding private elements (toggle)
Showing extended elements (toggle)

Strings used when working with the Editor 'delete' action (deleting existing records).

Summary

Properties - static

<static> button :string

TableTools button text

<static> confirm :object|string

Deletion confirmation message. [...]

<static> submit :string

Submit button text

<static> title :string

Display container title (when showing the editor display)

Details

Properties - static

<static> button :string

TableTools button text

<static> confirm :object|string

Deletion confirmation message.

As Editor has the ability to delete either a single or multiple rows at a time, this option can be given as either a string (which will be used regardless of how many records are selected) or as an object where the property "_" will be used (with %d substituted for the number of records to be deleted) as the delete message, unless there is a key with the number of records to be deleted. This allows Editor to consider the different pluralisation characteristics of different languages.

Examples
   // String - no plural consideration
   var editor = new $.fn.Editor( {
     "ajaxUrl": "data/source",
     "domTable": "#example",
     "i18n": {
       "remove": {
         "confirm": "Are you sure you wish to delete %s record(s)?"
       }
     }
   } );

 
   // Basic 1 (singular) or _ (plural)
   var editor = new $.fn.Editor( {
     "ajaxUrl": "data/source",
     "domTable": "#example",
     "i18n": {
       "remove": {
         "confirm": {
           "_": "Confirm deletion of %s records.",
           "1": "Confirm deletion of record."
       }
     }
   } );

 
   // Singular, dual and plural
   var editor = new $.fn.Editor( {
     "ajaxUrl": "data/source",
     "domTable": "#example",
     "i18n": {
       "remove": {
         "confirm": {
           "_": "Confirm deletion of %s records.",
           "1": "Confirm deletion of record.",
           "2": "Confirm deletion of both record."
       }
     }
   } );
       
<static> submit :string

Submit button text

<static> title :string

Display container title (when showing the editor display)