1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="columns">
<name>columns</name>
<summary>Set column specific initialisation properties.</summary>
<since>1.10</since>
<type type="array" />
<description>
The `dt-init columns` option in the initialisation parameter allows you to define details about the way individual columns behave. For a full list of column options that can be set, please see the related parameters below.
Note that if you use `dt-init columns` to define your columns, you _must_ have an entry in the array for every single column that you have in your table (these can be null if you don't wish to specify any options).
</description>
<example title="Disable filtering on the first column"><![CDATA[
$('#example').dataTable( {
"columns": [
{ "searchable": false },
null,
null,
null,
null
]
} );
]]></example>
<related type="option">columnDefs</related>
<related type="option">columns.cellType</related>
<related type="option">columns.className</related>
<related type="option">columns.contentPadding</related>
<related type="option">columns.createdCell</related>
<related type="option">columns.data</related>
<related type="option">columns.defaultContent</related>
<related type="option">columns.name</related>
<related type="option">columns.orderable</related>
<related type="option">columns.orderData</related>
<related type="option">columns.orderDataType</related>
<related type="option">columns.render</related>
<related type="option">columns.searchable</related>
<related type="option">columns.title</related>
<related type="option">columns.type</related>
<related type="option">columns.visible</related>
<related type="option">columns.width</related>
<related type="api">column()</related>
<related type="api">columns()</related>
</dt-option>
|