com.github.dandelion.datatables.core.extension.theme
Class Bootstrap2ResponsiveTheme

java.lang.Object
  extended by com.github.dandelion.datatables.core.extension.AbstractExtension
      extended by com.github.dandelion.datatables.core.extension.theme.Bootstrap2ResponsiveTheme
All Implemented Interfaces:
Extension

public class Bootstrap2ResponsiveTheme
extends AbstractExtension

Extension that adds a responsive behaviour to the table.

Based on datatables -responsive, developed by Comanche.

The extension updates the asset graph with the bootstrap2-responsive bundle, add necessary variables and adds the needed DataTable's parameters.

Also note that the HTML markup needs to be updated with the data-class and data-hide dynamic attributes.

For example:

 <datatables:table id="myTableId" data="${persons}" ext="bootstrap2,bootstrap2-responsive">
    <datatables:column title="Id" property="id" data-class="expand" />
    <datatables:column title="FirstName" property="firstName" />
    <datatables:column title="LastName" property="lastName" />
    <datatables:column title="Street" property="address.town.name" />
    <datatables:column title="Mail" property="mail" data-hide="phone,tablet" />
 </datatables:table>
 

Since:
0.10.0
Author:
Thibault Duchateau
See Also:
TableConfig.CSS_THEME, TableConfig.CSS_THEMEOPTION

Constructor Summary
Bootstrap2ResponsiveTheme()
           
 
Method Summary
 String getName()
           Returns the extension's name.
 void setup(HtmlTable table)
           
 
Methods inherited from class com.github.dandelion.datatables.core.extension.AbstractExtension
addBundle, addBundleParameter, addCallback, addCallback, addParameter, addParameter, addParameter, appendToAfterAll, appendToAfterStartDocumentReady, appendToBeforeAll, appendToBeforeEndDocumentReady, appendToBeforeStartDocumentReady, equals, getAfterAll, getAfterStartDocumentReady, getBeforeAll, getBeforeEndDocumentReady, getBeforeStartDocumentReady, getConfigGenerator, getContext, getDynamicAttributes, getFunction, getParameters, hashCode, isEnabled, isNotNull, setConfigGenerator, setConfs, setFunction, setupWrapper
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap2ResponsiveTheme

public Bootstrap2ResponsiveTheme()
Method Detail

getName

public String getName()
Description copied from interface: Extension

Returns the extension's name. The name is case-insensitive when loaded by the JSP taglib or the Thymelead dialect.


setup

public void setup(HtmlTable table)
Specified by:
setup in class AbstractExtension


Copyright © 2013–2014 Dandelion Project. All rights reserved.