<h1>Responsive example <span>Class control</span></h1>
<divclass="info">
<p>You can tell Responsive what columns to want to be visible on different devices through the use of class names on the columns. The breakpoints are horizontal
screen resolutions and the defaults are set for common devices:</p>
<ulclass="markdown">
<li><code>desktop</code> x >= 1024px</li>
<li><code>tablet-l</code> (landscape) 768 <= x < 1024</li>
<li><code>tablet-p</code> (portrait) 480 <= x < 768</li>
<li><code>mobile-l</code> (landscape) 320 <= x < 480</li>
<li><code>mobile-p</code> (portrait) x < 320</li>
</ul>
<p>You may leave the <code>-[lp]</code> option from the end if you wish to just target all tablet or mobile devices. Additionally to may add <code>min-</code>,
<code>max-</code> or <code>not-</code> as a prefix to the class name to perform logic operations. For example <code>not-mobile</code> would cause a column to
appear as visible on desktop and tablet devices, while <code>min-tablet-l</code> would require at least a horizontal width of 768 for the browser window to be
shown, and be shown at all sizes larger.</p>
<p>Additionally, there are three special class names:</p>
<ulclass="markdown">
<li><code>all</code> - Always display</li>
<li><code>none</code> - Don't display as a column, but show in the child row</li>
<li><code>never</code> - Never display</li>
<li><code>control</code> - Used for the <code>column</code><ahref=
<p>Please <ahref="//datatables.net/extensions/responsive/">refer to the Responsive manual</a> for further details of these options.</p>
<p>This example shows the <code>salary</code> column visible on a desktop only - <code>office</code> and <code>age</code> require a tablet, while the
<code>position</code> column requires a phone in landscape or larger. The <code>name</code> column is always visible and the <code>start date</code> is never
visible.</p>
<p>This can be useful if you wish to change the format of the data shown on different devices, for example using a combination of <code>mobile</code> and
<code>not-mobile</code> on two different columns would allow information to be formatted suitable for each device type.</p>
<p>The Javascript shown below is used to initialise the table shown in this example:</p><codeclass="multiline language-js">$(document).ready(function() {
<p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is
loaded.</p>
</div>
<divclass="php">
<p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side
processing scripts can be written in any language, using <ahref="//datatables.net/manual/server-side">the protocol described in the DataTables
<p>Please refer to the <ahref="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
Additionally, there are a wide range of <ahref="http://www.datatables.net/extras">extras</a> and <ahref="http://www.datatables.net/plug-ins">plug-ins</a>
which extend the capabilities of DataTables.</p>
<pclass="copyright">DataTables designed and created by <ahref="http://www.sprymedia.co.uk">SpryMedia Ltd</a>© 2007-2015<br>
DataTables is licensed under the <ahref="http://www.datatables.net/mit">MIT license</a>.</p>