1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-21 19:54:15 +01:00

Column model should just use nulls where the defaults will override it

This commit is contained in:
Allan Jardine 2011-12-15 12:45:42 +00:00
parent 6d0d1100f2
commit 478d7f4de6
2 changed files with 18 additions and 36 deletions

View File

@ -7128,9 +7128,8 @@
* columns to be sorted on (typically it will be a single integer pointing * columns to be sorted on (typically it will be a single integer pointing
* at itself, but that doesn't need to be the case). * at itself, but that doesn't need to be the case).
* @type array * @type array
* @default []
*/ */
"aDataSort": [], "aDataSort": null,
/** /**
* Define the sorting directions that are applied to the column, in sequence * Define the sorting directions that are applied to the column, in sequence
@ -7139,24 +7138,21 @@
* Sort it again (click again) and it will move on to the next index. * Sort it again (click again) and it will move on to the next index.
* Repeat until loop. * Repeat until loop.
* @type array * @type array
* @default ['asc', 'desc']
*/ */
"asSorting": ['asc', 'desc'], "asSorting": null,
/** /**
* Flag to indicate if the column is searchable, and thus should be included * Flag to indicate if the column is searchable, and thus should be included
* in the filtering or not. * in the filtering or not.
* @type boolean * @type boolean
* @default true
*/ */
"bSearchable": true, "bSearchable": null,
/** /**
* Flag to indicate if the column is sortable or not. * Flag to indicate if the column is sortable or not.
* @type boolean * @type boolean
* @default true
*/ */
"bSortable": true, "bSortable": null,
/** /**
* When using fnRender, you have two options for what to do with the data, * When using fnRender, you have two options for what to do with the data,
@ -7168,17 +7164,15 @@
* use of the 'type' that it gives, allowing (potentially) different data to * use of the 'type' that it gives, allowing (potentially) different data to
* be used for sorting, filtering, display and type detection. * be used for sorting, filtering, display and type detection.
* @type boolean * @type boolean
* @default true
* @deprecated * @deprecated
*/ */
"bUseRendered": true, "bUseRendered": null,
/** /**
* Flag to indicate if the column is currently visible in the table or not * Flag to indicate if the column is currently visible in the table or not
* @type boolean * @type boolean
* @default true
*/ */
"bVisible": true, "bVisible": null,
/** /**
* Flag to indicate to the type detection method if the automatic type * Flag to indicate to the type detection method if the automatic type
@ -7289,9 +7283,8 @@
* a "work around" we provide this option. It will append its value to the * a "work around" we provide this option. It will append its value to the
* text that is found to be the longest string for the column - i.e. padding. * text that is found to be the longest string for the column - i.e. padding.
* @type string * @type string
* @default <i>Empty string<i>
*/ */
"sContentPadding": "", "sContentPadding": null,
/** /**
* Allows a default value to be given for a column's data, and will be used * Allows a default value to be given for a column's data, and will be used
@ -7306,9 +7299,8 @@
* Name for the column, allowing reference to the column by name as well as * Name for the column, allowing reference to the column by name as well as
* by index (needs a lookup to work by name). * by index (needs a lookup to work by name).
* @type string * @type string
* @default <i>Empty string<i>
*/ */
"sName": '', "sName": null,
/** /**
* Custom sorting data type - defines which of the available plug-ins in * Custom sorting data type - defines which of the available plug-ins in
@ -7336,9 +7328,8 @@
/** /**
* Title of the column - what is seen in the TH element (nTh). * Title of the column - what is seen in the TH element (nTh).
* @type string * @type string
* @default <i>Empty string - automatically detected<i>
*/ */
"sTitle": '', "sTitle": null,
/** /**
* Column sorting and filtering type * Column sorting and filtering type

View File

@ -21,9 +21,8 @@ DataTable.models.oColumn = {
* columns to be sorted on (typically it will be a single integer pointing * columns to be sorted on (typically it will be a single integer pointing
* at itself, but that doesn't need to be the case). * at itself, but that doesn't need to be the case).
* @type array * @type array
* @default []
*/ */
"aDataSort": [], "aDataSort": null,
/** /**
* Define the sorting directions that are applied to the column, in sequence * Define the sorting directions that are applied to the column, in sequence
@ -32,24 +31,21 @@ DataTable.models.oColumn = {
* Sort it again (click again) and it will move on to the next index. * Sort it again (click again) and it will move on to the next index.
* Repeat until loop. * Repeat until loop.
* @type array * @type array
* @default ['asc', 'desc']
*/ */
"asSorting": ['asc', 'desc'], "asSorting": null,
/** /**
* Flag to indicate if the column is searchable, and thus should be included * Flag to indicate if the column is searchable, and thus should be included
* in the filtering or not. * in the filtering or not.
* @type boolean * @type boolean
* @default true
*/ */
"bSearchable": true, "bSearchable": null,
/** /**
* Flag to indicate if the column is sortable or not. * Flag to indicate if the column is sortable or not.
* @type boolean * @type boolean
* @default true
*/ */
"bSortable": true, "bSortable": null,
/** /**
* When using fnRender, you have two options for what to do with the data, * When using fnRender, you have two options for what to do with the data,
@ -61,17 +57,15 @@ DataTable.models.oColumn = {
* use of the 'type' that it gives, allowing (potentially) different data to * use of the 'type' that it gives, allowing (potentially) different data to
* be used for sorting, filtering, display and type detection. * be used for sorting, filtering, display and type detection.
* @type boolean * @type boolean
* @default true
* @deprecated * @deprecated
*/ */
"bUseRendered": true, "bUseRendered": null,
/** /**
* Flag to indicate if the column is currently visible in the table or not * Flag to indicate if the column is currently visible in the table or not
* @type boolean * @type boolean
* @default true
*/ */
"bVisible": true, "bVisible": null,
/** /**
* Flag to indicate to the type detection method if the automatic type * Flag to indicate to the type detection method if the automatic type
@ -182,9 +176,8 @@ DataTable.models.oColumn = {
* a "work around" we provide this option. It will append its value to the * a "work around" we provide this option. It will append its value to the
* text that is found to be the longest string for the column - i.e. padding. * text that is found to be the longest string for the column - i.e. padding.
* @type string * @type string
* @default <i>Empty string<i>
*/ */
"sContentPadding": "", "sContentPadding": null,
/** /**
* Allows a default value to be given for a column's data, and will be used * Allows a default value to be given for a column's data, and will be used
@ -199,9 +192,8 @@ DataTable.models.oColumn = {
* Name for the column, allowing reference to the column by name as well as * Name for the column, allowing reference to the column by name as well as
* by index (needs a lookup to work by name). * by index (needs a lookup to work by name).
* @type string * @type string
* @default <i>Empty string<i>
*/ */
"sName": '', "sName": null,
/** /**
* Custom sorting data type - defines which of the available plug-ins in * Custom sorting data type - defines which of the available plug-ins in
@ -229,9 +221,8 @@ DataTable.models.oColumn = {
/** /**
* Title of the column - what is seen in the TH element (nTh). * Title of the column - what is seen in the TH element (nTh).
* @type string * @type string
* @default <i>Empty string - automatically detected<i>
*/ */
"sTitle": '', "sTitle": null,
/** /**
* Column sorting and filtering type * Column sorting and filtering type